add optimizer

optimizer now does one work: calculate const number before generating bytecode
This commit is contained in:
ValKmjolnir
2022-01-22 00:41:08 +08:00
parent a51b7fe11a
commit 6c3e5e6a02
5 changed files with 48 additions and 1 deletions
+2
View File
@@ -5,6 +5,7 @@ var filename=[
"nasal_ast.h",
"nasal_builtin.h",
"nasal_codegen.h",
"nasal_opt.h",
"nasal_gc.h",
"nasal_import.h",
"nasal_lexer.h",
@@ -19,6 +20,7 @@ var space=[
" ",
"",
"",
" ",
" ",
" ",
" ",