added write, read and for statements

This commit is contained in:
hellerve
2015-07-11 17:02:45 +02:00
parent a19dd4508c
commit 140dac9cbc
3 changed files with 111 additions and 2 deletions

View File

@@ -23,6 +23,8 @@ TOKENS = [
(r'>', RESERVED),
(r'=', RESERVED),
(r'!=', RESERVED),
(r'read', RESERVED),
(r'write', RESERVED),
(r'and', RESERVED),
(r'or', RESERVED),
(r'not', RESERVED),
@@ -30,6 +32,7 @@ TOKENS = [
(r'then', RESERVED),
(r'else', RESERVED),
(r'while', RESERVED),
(r'for', RESERVED),
(r'do', RESERVED),
(r'end', RESERVED),
(r'[0-9]+', INT),