Switching back from <s-exp> tuple to vectors

db4
James Cash 2008-04-26 17:17:34 -04:00
parent 228430512c
commit 1ad1f5ceba
1 changed files with 1 additions and 4 deletions

View File

@ -6,9 +6,6 @@ IN: lisp.parser
TUPLE: lisp-symbol name ; TUPLE: lisp-symbol name ;
C: <lisp-symbol> lisp-symbol C: <lisp-symbol> lisp-symbol
TUPLE: s-exp body ;
C: <s-exp> s-exp
EBNF: lisp-expr EBNF: lisp-expr
_ = (" " | "\t" | "\n")* _ = (" " | "\t" | "\n")*
LPAREN = "(" LPAREN = "("
@ -32,5 +29,5 @@ atom = number
| identifier | identifier
| string | string
list-item = _ (atom|s-expression) _ => [[ second ]] list-item = _ (atom|s-expression) _ => [[ second ]]
s-expression = LPAREN (list-item)* RPAREN => [[ second <s-exp> ]] s-expression = LPAREN (list-item)* RPAREN => [[ second ]]
;EBNF ;EBNF