Skip to content
Browse files

'class |:..' now works.

  • Loading branch information...
1 parent f87b464 commit 893cc68efcfc1eb4a35d3ab2c6f1a4fe3b6785c4 @orangea orangea committed Nov 13, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 core/syntax.g
View
3 core/syntax.g
@@ -117,7 +117,7 @@ expr = ( not a:expr { a = PN_AST(NOT, a); }
(c:call { a = PN_PUSH(a, c) })*
{ $$ = PN_AST(EXPR, a); }
-atom = e:value | e:closure | e:table | e:call | e:group
+atom = e:value | e:closure | e:table | e:call
call = (n:name { v = PN_NIL; b = PN_NIL; } (v:value | v:table)? (b:block | b:closure)? |
(v:value | v:table) { n = PN_AST(MESSAGE, PN_NIL); b = PN_NIL; } b:block?)
@@ -154,6 +154,7 @@ message = < utfw+ '?'? > - { $$ = potion_str2(P, yytext, yyleng); }
value = i:immed - { $$ = PN_AST(VALUE, i); }
| lick
+ | group
immed = nil { $$ = PN_NIL; }
| true { $$ = PN_TRUE; }

0 comments on commit 893cc68

Please sign in to comment.
Something went wrong with that request. Please try again.