summaryrefslogtreecommitdiff
path: root/Compiler/gen/CGrammar.tokens
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-12 07:41:29 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-12 07:41:29 +1000
commit94ddc02e03ab942d0c881e29053e8df3d2940c30 (patch)
tree4cd91b46b70a29ffd8a8247d68afd97d0852a0ce /Compiler/gen/CGrammar.tokens
parent252ad79d05e3805f7a8c990e19dccb373a2c5231 (diff)
WIP: added type specification, indexes and hex numerics
Diffstat (limited to 'Compiler/gen/CGrammar.tokens')
-rw-r--r--Compiler/gen/CGrammar.tokens113
1 files changed, 60 insertions, 53 deletions
diff --git a/Compiler/gen/CGrammar.tokens b/Compiler/gen/CGrammar.tokens
index d575ec0..e57eab2 100644
--- a/Compiler/gen/CGrammar.tokens
+++ b/Compiler/gen/CGrammar.tokens
@@ -48,57 +48,64 @@ T__46=47
T__47=48
T__48=49
T__49=50
-ID=51
-INT=52
-WS=53
-COMMENT=54
-'int'=1
-'('=2
-','=3
-')'=4
-';'=5
-'{'=6
-'}'=7
-'return'=8
-'if'=9
-'else'=10
-'for'=11
-'while'=12
-'do'=13
-'break'=14
-'continue'=15
+T__50=51
+T__51=52
+T__52=53
+HEX=54
+ID=55
+INT=56
+WS=57
+COMMENT=58
+'('=1
+','=2
+')'=3
+';'=4
+'{'=5
+'}'=6
+'return'=7
+'if'=8
+'else'=9
+'for'=10
+'while'=11
+'do'=12
+'break'=13
+'continue'=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
-'^='=46
-'<<='=47
-'>>='=48
-'?'=49
-':'=50
+'&'=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
+'|='=46
+'^='=47
+'<<='=48
+'>>='=49
+'?'=50
+':'=51
+'int'=52
+'char'=53