Permalink
Browse files

Empty Statements

  • Loading branch information...
1 parent 041b2cf commit dd689f873281523bd3b146954c134386fb1931f8 Brian Gernhardt committed Jan 25, 2011
Showing with 4 additions and 1 deletion.
  1. +3 −1 cish/src/cish/Actions.pm
  2. +1 −0 cish/src/cish/Grammar.pm
@@ -19,8 +19,10 @@ method statement($/) {
method simple($/) {
if $<builtin> {
make $<builtin>.ast
- } else {
+ } elsif $<EXPR> {
make $<EXPR>.ast
+ } else {
+ make PAST::Op.new( :inline<noop>, :pasttype<inline>, :node($/) );
}
}
@@ -28,6 +28,7 @@ rule statement {
rule simple {
| <builtin>
| <EXPR>
+ | <?>
}
proto token builtin { <...> }

0 comments on commit dd689f8

Please sign in to comment.