remove debug
This commit is contained in:
parent
fa71f23bbf
commit
f17b2c1087
13
compile.phi
13
compile.phi
@ -1,10 +1,4 @@
|
||||
|
||||
(fn dbg (msg) (do
|
||||
(if is_phi_compiler (do
|
||||
(call println "dbg: %" msg)
|
||||
))
|
||||
))
|
||||
|
||||
(fn Emitter (ast filename) (do
|
||||
(let output ())
|
||||
|
||||
@ -41,12 +35,6 @@
|
||||
(call define_builtin ident builtin_id)
|
||||
))
|
||||
|
||||
(let is_phi_compiler_sym_id (call define_let "is_phi_compiler" 0))
|
||||
(call emit (call format
|
||||
"let _is_phi_compiler% = { type: \"bool\", value: true };\n"
|
||||
is_phi_compiler_sym_id
|
||||
))
|
||||
|
||||
(call discover_syms ast)
|
||||
(call emit_exprs ast)
|
||||
(return (call strings_join output))
|
||||
@ -99,7 +87,6 @@
|
||||
|
||||
(let sym (call get_sym value))
|
||||
(if (== sym null) (do
|
||||
(call print_syms)
|
||||
(call panic "undefined symbol '%' on line %" value line)
|
||||
))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user