summaryrefslogtreecommitdiff
path: root/Compiler/gen/CGrammar.tokens
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-08 23:57:26 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-08 23:57:26 +1000
commite62b66dd08ca445d1f7e5b802a503ad3ec83b2df (patch)
tree8cdb4ee09d1eefe096f51d6c9150dc361d08ccb9 /Compiler/gen/CGrammar.tokens
parent33e1c5fc6e37549b4eba833ae7e534f9da250b10 (diff)
added branching to compiler and comment generation
Diffstat (limited to 'Compiler/gen/CGrammar.tokens')
-rw-r--r--Compiler/gen/CGrammar.tokens82
1 files changed, 62 insertions, 20 deletions
diff --git a/Compiler/gen/CGrammar.tokens b/Compiler/gen/CGrammar.tokens
index fc1a392..7556128 100644
--- a/Compiler/gen/CGrammar.tokens
+++ b/Compiler/gen/CGrammar.tokens
@@ -23,8 +23,30 @@ T__21=22
T__22=23
T__23=24
T__24=25
-ID=26
-INT=27
+T__25=26
+T__26=27
+T__27=28
+T__28=29
+T__29=30
+T__30=31
+T__31=32
+T__32=33
+T__33=34
+T__34=35
+T__35=36
+T__36=37
+T__37=38
+T__38=39
+T__39=40
+T__40=41
+T__41=42
+T__42=43
+T__43=44
+T__44=45
+ID=46
+INT=47
+WS=48
+COMMENT=49
'int'=1
'('=2
')'=3
@@ -32,21 +54,41 @@ INT=27
'}'=5
'return'=6
';'=7
-'!'=8
-'~'=9
-'*'=10
-'/'=11
-'%'=12
-'+'=13
-'-'=14
-'<'=15
-'>'=16
-'<='=17
-'>='=18
-'=='=19
-'!='=20
-'&'=21
-'|'=22
-'^'=23
-'&&'=24
-'||'=25
+'if'=8
+'else'=9
+'='=10
+'!'=11
+'~'=12
+'++'=13
+'--'=14
+'*'=15
+'/'=16
+'%'=17
+'+'=18
+'-'=19
+'<'=20
+'>'=21
+'<='=22
+'>='=23
+'=='=24
+'!='=25
+'&'=26
+'|'=27
+'^'=28
+'<<'=29
+'>>'=30
+'&&'=31
+'||'=32
+'*='=33
+'/='=34
+'%='=35
+'+='=36
+'-='=37
+'&='=38
+'|='=39
+'^='=40
+'<<='=41
+'>>='=42
+','=43
+'?'=44
+':'=45