exp11223.minic.1.0.1.source-code.MiniC.tokens Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minic Show documentation
Show all versions of minic Show documentation
A simple compiler for a C-like programming language to JVM bytecode implemented in Kotlin.
Created for educational purposes and for usage in another educational app
(visualization/simulation of compilation process).
IntegerLiteral=1
FloatingPointLiteral=2
StringLiteral=3
BooleanLiteral=4
SEMI=5
WS=6
IF_KEYWORD=7
ELSE_KEYWORD=8
WHILE_KEYWORD=9
BREAK_KEYWORD=10
CONTINUE_KEYWORD=11
EXIT_KEYWORD=12
READ_INT_KEYWORD=13
READ_DOUBLE_KEYWORD=14
READ_LINE_KEYWORD=15
TO_STRING_KEYWORD=16
PRINT_KEYWORD=17
PRINTLN_KEYWORD=18
INT_TYPE=19
DOUBLE_TYPE=20
STRING_TYPE=21
BOOL_TYPE=22
MUL=23
DIV=24
PLUS=25
MINUS=26
MOD=27
LT=28
GT=29
LTEQ=30
GTEQ=31
ASSIGN=32
EQ=33
NOTEQ=34
NOT=35
AND=36
OR=37
LPAR=38
RPAR=39
LBRACE=40
RBRACE=41
Identifier=42
';'=5
'if'=7
'else'=8
'while'=9
'break'=10
'continue'=11
'exit'=12
'readInt'=13
'readDouble'=14
'readLine'=15
'toString'=16
'print'=17
'println'=18
'int'=19
'double'=20
'string'=21
'bool'=22
'*'=23
'/'=24
'+'=25
'-'=26
'%'=27
'<'=28
'>'=29
'<='=30
'>='=31
'='=32
'=='=33
'!='=34
'!'=35
'&&'=36
'||'=37
'('=38
')'=39
'{'=40
'}'=41