Workflowlol-c
lol.c
An interpreter for the LOLCODE esoteric programming language, implementing lexing, parsing, and evaluation from scratch in Python.
stack
- Python
Architecture
- Lexer — tokenizes source into typed tokens (keywords, identifiers, literals, operators)
- Parser — builds an AST, handling HAI/KTHXBYE blocks, VISIBLE, and GIMMEH
- Evaluator — tree-walking execution with symbol table, type coercion, and control flow (IF/ELSE, loops)
- Coercion table — implicit casting between NUMBR, NUMBAR, YARN, and TROOF based on operation context
Results
- Complete interpreter with lexer, parser, and evaluator
- Handles LOLCODE's unique type coercion rules
Action · Send message
Hiring for a remote AI engineering role?
Contact me