remove debug

This commit is contained in:
sfja 2025-09-23 16:12:26 +02:00
parent fa71f23bbf
commit f17b2c1087
2 changed files with 787 additions and 813 deletions

View File

@ -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)
))

1587
stage2.js

File diff suppressed because it is too large Load Diff