From e62b66dd08ca445d1f7e5b802a503ad3ec83b2df Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Fri, 8 Aug 2025 23:57:26 +1000 Subject: added branching to compiler and comment generation --- Compiler/gen/CGrammarLexer.tokens | 82 +++++++++++++++++++++++++++++---------- 1 file changed, 62 insertions(+), 20 deletions(-) (limited to 'Compiler/gen/CGrammarLexer.tokens') diff --git a/Compiler/gen/CGrammarLexer.tokens b/Compiler/gen/CGrammarLexer.tokens index fc1a392..7556128 100644 --- a/Compiler/gen/CGrammarLexer.tokens +++ b/Compiler/gen/CGrammarLexer.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 -- cgit v1.3.1