added write, read and for statements
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user