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:
parent
f5742cf042
commit
b7966c10ef
2 changed files with 10 additions and 3 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue