Switching back from <s-exp> tuple to vectors
parent
228430512c
commit
1ad1f5ceba
|
@ -6,9 +6,6 @@ IN: lisp.parser
|
|||
TUPLE: lisp-symbol name ;
|
||||
C: <lisp-symbol> lisp-symbol
|
||||
|
||||
TUPLE: s-exp body ;
|
||||
C: <s-exp> s-exp
|
||||
|
||||
EBNF: lisp-expr
|
||||
_ = (" " | "\t" | "\n")*
|
||||
LPAREN = "("
|
||||
|
@ -32,5 +29,5 @@ atom = number
|
|||
| identifier
|
||||
| string
|
||||
list-item = _ (atom|s-expression) _ => [[ second ]]
|
||||
s-expression = LPAREN (list-item)* RPAREN => [[ second <s-exp> ]]
|
||||
s-expression = LPAREN (list-item)* RPAREN => [[ second ]]
|
||||
;EBNF
|
||||
|
|
Loading…
Reference in New Issue