1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-17 01:00:20 +02:00

support "#'" syntax for function expressions

* module/language/elisp/lexer.scm (lex):
* module/language/elisp/parser.scm (get-expression): Support sharpsign
  single-quote syntax as an abbreviation for `function' expressions.

Signed-off-by: Andy Wingo <wingo@pobox.com>
This commit is contained in:
Brian Templeton 2010-07-22 15:12:50 -04:00 committed by Andy Wingo
parent f5742cf042
commit b7966c10ef
2 changed files with 10 additions and 3 deletions

View file

@ -183,6 +183,8 @@
(parse-error token "end of file during parsing"))
((integer float symbol character string)
(return (cdr token)))
((function)
(return `(function ,(get-expression lex))))
((quote backquote unquote unquote-splicing)
(return (list (assq-ref quotation-symbols type)
(get-expression lex))))