Skip to content

Separate the main package into several internal ones

Compare
Choose a tag to compare
@DQNEO DQNEO released this 05 Aug 09:21
· 408 commits to main since this release
  • Now the compiler's main code is separated into internal/ packages
  • Code generation codegen is not depend on ast any more, but on semantic analyzer (sema) and intermediate representation (ir) objects.
  • Move a lot of logic from code generator to semantic analyzer
  • Adopted DWARF2 debug info https://sourceware.org/binutils/docs/as.html#Loc
  • Adopted token.Pos and fileset position mechanism
  • Removed pre compiler. It is now generated automatically in test.