diff options
author | Benedikt Böhm <bb@xnull.de> | 2009-06-29 12:28:01 +0200 |
---|---|---|
committer | Benedikt Böhm <bb@xnull.de> | 2009-06-29 12:28:01 +0200 |
commit | 4aedc5d76250fae734af1cd89256ec70e165ab18 (patch) | |
tree | 9f9c290f7d31a9aa966045019972670382596d45 /src/front/lexer.py | |
parent | 17fab2bc59945045a8df39ece8c845d1565245da (diff) | |
download | swppy-4aedc5d76250fae734af1cd89256ec70e165ab18.tar.gz swppy-4aedc5d76250fae734af1cd89256ec70e165ab18.tar.xz swppy-4aedc5d76250fae734af1cd89256ec70e165ab18.zip |
fix function_call
- function_call is now an expression and a statement
- call keyword is required to make lookahead = 1 work
Diffstat (limited to 'src/front/lexer.py')
-rw-r--r-- | src/front/lexer.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/front/lexer.py b/src/front/lexer.py index f2810cd..53ccaec 100644 --- a/src/front/lexer.py +++ b/src/front/lexer.py @@ -21,6 +21,7 @@ class Lexer: 'while': Token(Tag.WHILE), 'if': Token(Tag.IF), 'else': Token(Tag.ELSE), + 'call': Token(Tag.CALL), 'fun': Token(Tag.FUN), 'end': Token(Tag.END)} return |