compiler-frontend - Build Compiler Frontend Components
Builds lexers, parsers, ASTs, symbol tables, type checkers, and LLVM IR emitters for custom languages or DSLs.
Tags
Updated: 2026-09-24Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Implement hand-written state machine lexer
- Parse expressions with Pratt parser
- Parse statements using recursive descent
- Manage chain of symbol scopes
- Perform type checking on AST
- Recover from syntax error panics
- Emit LLVM IR from AST
Inputs
- Language description and grammar rules
- Implementation language choice C or Rust
- Requested frontend pipeline stages
- Valid and error test inputs
Outputs
- Frontend source code files
- Generated LLVM IR code
- Compiler diagnostic error messages
Requirements
- C or Rust development toolchain
- LLVM C API or Rust inkwell crate
- Flex lexer generator tool
