How iamzhz/abandon works
Project type and purpose
• This is a compiler front-end (and partial back-end) for a toy language named “Abandon.”
• README tells us it lexes, parses, builds an AST/IR, performs semantic checks, and emits or interprets code.
File structure
• Top-level “src/” contains all components, each in its own subfolder:
• CmdLineParser – command-line argument parsing
• FileManager – file I/O and buffering
• Lexer – tokenizes source text
• Parser – produces AST from tokens
• IR – intermediate representation structures
• Tree – AST node definitions and helpers
• SymbolTable – manages scopes and symbol lookups
• PointerManager – handles pointer/reference semantics
• SayError – error-reporting routines
• debug – debug logging and trace utilities
• .h, main.cc – central includes and program entry point
• A makefile at the root shows the single-binary build.
• “doc/” contains markdown documentation for each subsystem.
README for additional insights
• Confirms the pipeline: source → lexer → parser → semantic (symbol/pointer) → IR → output.
• No external services—purely in-process modules.