]> gitweb.factorcode.org Git - factor.git/commitdiff
Adding fix to lisp.parser to allow lisp-exprs to be atoms
authorJames Cash <james.nvc@gmail.com>
Tue, 10 Jun 2008 05:44:38 +0000 (01:44 -0400)
committerJames Cash <james.nvc@gmail.com>
Wed, 11 Jun 2008 05:36:35 +0000 (01:36 -0400)
extra/lisp/parser/parser.factor

index 1e37193d3a0c2e6dba749a0a403efb73b8ed7522..8fadb00e656656397287e4a088d0e1edc546ff48 100644 (file)
@@ -34,6 +34,6 @@ string       = dquote ( escaped | !(dquote) . )*  dquote => [[ second >string ]]
 atom         = number
               | identifier
               | string
-list-item    = _ ( atom | s-expression ) _               => [[ second ]]
 s-expression = LPAREN (list-item)* RPAREN                => [[ second seq>cons ]]
+list-item    = _ ( atom | s-expression ) _               => [[ second ]]
 ;EBNF
\ No newline at end of file