summaryrefslogtreecommitdiff
path: root/test-suite/tests/elisp-reader.test
Commit message (Collapse)AuthorAgeFilesLines
* use correct names for quasiquotation operatorsBrian Templeton2010-12-071-1/+1
| | | | | | | | | | | | | | | | | | Use #{`}#, #{,}# and #{,@}# as the quasiquote, unquote and unquote-splicing operators, respectively. Previously they were named escaping. * module/language/elisp/compile-tree-il.scm (unquote?): Change "\," to "#{,}#". (unquote-splicing): Change "\,@" to "#{,@}#". (#{compile-`}#): Rename from #{compile-\`}#. * module/language/elisp/runtime/function-slot.scm: Import #{compile-`}# instead of #{compile-\`}#, and re-export as #{`}# instead of as #{\`}#. * module/language/elisp/parser.scm (quotation-symbols): * test-suite/tests/elisp-compiler.test ("Eval", "Quotation"): * test-suite/tests/elisp-reader.test ("Parser"): Change "\`", "\,", and "\,@" to "#{`}#", "#{,}#" and "#{,@}#", respectively.
* update elisp reader tests to handle EOF tokensBrian Templeton2010-12-071-6/+6
| | | | | * test-suite/tests/elisp-reader.test (lex-all, "end-of-input", "lexer/1"): Check for an EOF token instead of the symbol `*eoi*'.
* Support circular structures in elisp reader.Daniel Kraft2009-08-271-2/+17
| | | | | | * module/language/elisp/lexer.scm: Recognize circular markers. * module/language/elisp/parser.scm: Handle them correctly. * test-suite/tests/elisp-reader.test: Check circular structure parsing.
* Replaced generated elisp parser with hand-written one to fix source properties.Daniel Kraft2009-08-271-3/+11
| | | | | * module/language/elisp/parser.scm: Hand-written parser. * test-suite/tests/elisp-reader.test: Test for source properties.
* Parser for elisp and use it as reader.Daniel Kraft2009-08-261-4/+40
| | | | | | | | * module/language/elisp/parser.scm: New parser file. * module/language/elisp/lexer.scm: Fix lexer/1 and add unquote-splicing support. * module/language/elisp/spec.scm: Use new elisp-reader. * module/language/elisp/README: Document we've got a reader now. * test-suite/tests/elisp-reader.test: Test the parser.
* get-lexer/1 for elisp that finishes after the first full expression is read.Daniel Kraft2009-08-261-7/+17
| | | | | * module/language/elisp/lexer.scm: Add get-lexer/1. * test-suite/tests/elisp-reader.test: Test lexer/1.
* Character and string literal support for the elisp lexer.Daniel Kraft2009-08-261-1/+30
| | | | | * module/language/elisp/lexer.scm: Handle character and string literals. * test-suite/tests/elisp-reader.test: Test it.
* A first, rough lexer for elisp still missing some stuff.Daniel Kraft2009-08-261-0/+87
* module/language/elisp/lexer.scm: New lexer file. * test-suite/Makefile.am: Register elisp-reader.test as new test. * test-suite/tests/elisp-reader.test: New test-case.