nodes+parser+semantic+ir: add variables

References + assignments
This commit is contained in:
Antoine Viallon 2023-05-09 01:54:47 +02:00
parent e9324f4f71
commit 223c3be819
Signed by: aviallon
GPG key ID: D126B13AB555E16F
6 changed files with 207 additions and 50 deletions

View file

@ -33,6 +33,8 @@ class Tokens(enum.Enum):
Op_Divide = re.compile(r"/")
Parens_Left = re.compile(r"\(")
Parens_Right = re.compile(r"\)")
Identifier = re.compile(r"[a-zA-Z_][a-zA-Z_0-9]*")
Equal = re.compile(r"=")
Newline = re.compile(r"\n", flags=re.MULTILINE)
EOF = re.compile(r"\Z")
Blank = re.compile(r"[ \t]+")