summaryrefslogtreecommitdiff
path: root/test-suite/tests/syncase.test
Commit message (Collapse)AuthorAgeFilesLines
* psyntax expander tracks changes to current module in top-level beginAndy Wingo2010-03-031-11/+9
| | | | | | | | | | * module/ice-9/psyntax-pp.scm: Regenerated. * module/ice-9/psyntax.scm (chi-top-sequence): Track changes to the current module. Allows e.g. top-level `define-module' within a begin to work. * test-suite/tests/syncase.test ("changes to expansion environment"): Enable test.
* Change failing syncase test case to UNRESOLVED.Julian Graham2010-03-011-9/+10
| | | | | | * test-suite/tests/syncase.test: ("expander detects changes to current-module"): Throw 'unresolved instead of returning #f.
* add (currently failing) test case for changing the current module insideJulian Graham2010-02-271-0/+12
| | | | | | | `begin' form * test-suite/tests/syncase.scm: ("expander detects changes to current-module"): New test case.
* psyntax's labels and marks now unique over a read/write boundaryAndy Wingo2009-12-201-2/+26
| | | | | | | | | | | | | | | | | | * module/ice-9/psyntax.scm (gen-label, new-mark): Labels and marks need to be unique across read/write boundaries -- it's not sufficient for them to simply be unique within a process by virtue of (string #\i) constructing a new object. This used to mostly work before, because the collapsing of duplicate constants didn't catch many syntax-object cases -- but for some reason the attached test case brings out the problem. So switch to use gensyms. Potentially more costly, but it's what upstream psyntax does now. This bug took me fully two days to figure out. * module/ice-9/psyntax-pp.scm: Regenerated. * test-suite/tests/syncase.test ("serializable labels and marks"): Add test case.
* add partial support for tail patterns in syntax-rules/syntax-caseAndreas Rottmann2009-12-111-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | I've prepared a patch that adds partial support for tail patterns. Things like the the SRFI-34 `guard' macro from [0] are supported, but you still can't combine dotted patterns with tail patterns, e.g. (syntax-rules (else) ((foo bar ... (else something) . rest) <TEMPLATE-HERE>)) will *not* work; there's the issue that one can't just transcribe the implementation of this feature from the latest version of psyntax, as I've done for non-dotted tail patterns, as it's implemented using a dotted pattern like the above. Alas! [0] <http://article.gmane.org/gmane.lisp.guile.devel/9442> * module/ice-9/psyntax.scm (syntax-case, $sc-dispatch): Add support for tail patterns, transcribed from the latest psyntax. * module/ice-9/psyntax-pp.scm: Regenerated. * test-suite/tests/syncase.test: Add tests for tail patterns.
* add quasisyntaxAndreas Rottmann2009-11-141-1/+13
| | | | | | | | | | * module/Makefile.am: * module/ice-9/boot-9.scm: * module/ice-9/quasisyntax.scm: Add quasisyntax. Implementation by Andre van Tonder, patch by Andreas Rottmann. * test-suite/tests/srfi-10.test: Hack to remove srfi-10's clobbering of #,. * test-suite/tests/syncase.test: Add a quasisyntax test.
* Remove deprecation warnings from the buildNeil Jerram2009-09-171-5/+0
| | | | | | | | | * module/srfi/srfi-35.scm: Remove explicit use of (ice-9 syncase). * test-suite/tests/r5rs_pitfall.test: Same again. * test-suite/tests/syncase.test: Remove "(ice-9 syncase) loads" test; syncase is always loaded now.
* Change Guile license to LGPLv3+Neil Jerram2009-06-171-11/+10
| | | | | | | | | | (Not quite finished, the following will be done tomorrow. module/srfi/*.scm module/rnrs/*.scm module/scripts/*.scm testsuite/*.scm guile-readline/* )
* Allow @ to work with (ice-9 syncase)Neil Jerram2009-02-081-0/+3
| | | | | | | | | (Reported by Panicz Maciej Godek.) * test-suite/tests/syncase.test ("@ works with syncase"): New test. * ice-9/syncase.scm (guile-macro): When a Guile macro transformer produces a variable, don't pass it through sc-expand.
* merge from 1.8 branchKevin Ryde2006-04-161-1/+1
|
* The FSF has a new address.Marius Vollmer2005-05-231-2/+2
|
* * lib.scm (exception:missing-expression): New.Dirk Herrmann2003-10-071-7/+6
| | | | | | | | | | | | | | | | | | * tests/dynamic-scope.test, tests/eval.test, tests/r5rs_pitfall.test, tests/srfi-17.test, tests/syncase.test: Wrap tests in module (test-suite test-<file-name without .test>), following a practice that was used on a couple of files already. * tests/dynamic-scope.test (exception:duplicate-binding, exception:bad-binding): New. * tests/dynamic-scope.test, tests/srfi-17.test, tests/syntax.test: Execute syntactically wrong tests using eval. With the upcoming new memoizer this is necessary in order to postpone the syntax check to the actual evaluation of the syntactically wrong form. * tests/syntax.test: Added some test cases and modified one test case.
* (basic syncase macro): Added.Marius Vollmer2002-05-061-0/+7
|
* New, minimal tests.Marius Vollmer2001-05-211-0/+30