Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove debugging. Fix prefixexp

  • Loading branch information...
commit c7c454f6c2aeefd20b480c99993e6d871e41b147 1 parent cff18ba
@xrl authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/grammar.kpeg
View
5 lib/grammar.kpeg
@@ -54,12 +54,11 @@ exp = "nil" { [:lit, nil] }
| exp:e1 binop:op exp:e2 { [op,e1,e2] }
| unop exp
-prefixexp = "(" exp ")"
+prefixexp = "(" exp:e ")" { [:prefixexp, e] }
| functioncall:fc { [:prefixexp, fc] }
| var:v { [:prefixexp, v] }
-functioncall = "kitties()" { [:functioncall, :kitties, []] }
- | prefixexp args
+functioncall = prefixexp args
| prefixexp ":" name args
args = - "(" - ((explist)?):e - ")" - { [:args, e.nil? ? [] : e] }
Please sign in to comment.
Something went wrong with that request. Please try again.