Switching back from <s-exp> tuple to vectors
							parent
							
								
									228430512c
								
							
						
					
					
						commit
						1ad1f5ceba
					
				|  | @ -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 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue