bugfixes & improved language design
This commit is contained in:
@@ -10,11 +10,14 @@ class Repo:
|
||||
'class',
|
||||
'func',
|
||||
'var',
|
||||
'use',
|
||||
'from',
|
||||
# builtin functions
|
||||
'output',
|
||||
'input',
|
||||
'length',
|
||||
'range',
|
||||
'exit',
|
||||
# normal keywords
|
||||
'if',
|
||||
'elseif',
|
||||
@@ -37,17 +40,9 @@ class Repo:
|
||||
'emptyType',
|
||||
'void'
|
||||
]
|
||||
self.var_types = [
|
||||
'any',
|
||||
'number',
|
||||
'string',
|
||||
'bool',
|
||||
'list',
|
||||
'dict'
|
||||
]
|
||||
self.format_chars = ['{', '}', '(', ')', ';', ':', ',']
|
||||
self.format_chars = ['{', '}', '(', ')', ';', ':', ',', '.']
|
||||
self.expr_chars = ['+', '-', '*', '/', '=', '^']
|
||||
self.bool_expr_chars = ['<', '>', '!', '!=', '==', '>=', '<=']
|
||||
self.bool_expr_chars = ['<', '>', '!', '!=', '==', '>=', '<=', '&&', '||']
|
||||
self.bool_values = ['true', 'false']
|
||||
|
||||
# runtime
|
||||
|
Reference in New Issue
Block a user