Squash commits for public release
This commit is contained in:
24
utils/compilers/ConnectionCompiler/Lexer/reserved_symbols.py
Normal file
24
utils/compilers/ConnectionCompiler/Lexer/reserved_symbols.py
Normal file
@@ -0,0 +1,24 @@
|
||||
from type_file import Type
|
||||
|
||||
reserved_symbols = {
|
||||
'(': Type.Lang.LeftBracket,
|
||||
')': Type.Lang.RightBracket,
|
||||
';': Type.Lang.Semi,
|
||||
'.': Type.Lang.Dot,
|
||||
',': Type.Lang.Comma,
|
||||
':': Type.Lang.Colon,
|
||||
|
||||
'=>': Type.Reserved.Return,
|
||||
|
||||
'{': Type.Reserved.Begin,
|
||||
'}': Type.Reserved.End,
|
||||
}
|
||||
|
||||
reserved_words = {
|
||||
'NAME': Type.Reserved.Name,
|
||||
'MAGIC': Type.Reserved.Magic,
|
||||
'KEYPROTECTED': Type.Reserved.KeyProtected,
|
||||
}
|
||||
|
||||
available_var_types = [Type.Number.Integer,
|
||||
Type.Number.Real, Type.Number.Boolean]
|
||||
Reference in New Issue
Block a user