How ludosniper/digited works
Project type and purpose
• This is a domain‐specific programming language (“Digited”), Brainfuck-like but digit-only.
• It provides both a compiler (two versions) and an interpreter, plus a CLI entry point (digited.py) and test cases.
File structure
Top-level
– README.md (project description)
– digited.py (CLI orchestration: compile or interpret)
– /compilator
• compilator.py (pure-Python compiler v1)
• compilatorv2.py (lexer/parser-based compiler v2)
• tests/
– digited_lex.l, digited_yacc.y (lexer & parser specs)
– generated C: lex.yy.c, y.tab.c/h
– /interpreter
• interpreter.py (runtime engine)
– /tests
• helloworld.dg (sample Digited programs)
README for insights
• Defines language semantics (commands 0–9, parentheses for comments).
• Notes unimplemented features (nested loops/comments, input command).
Important notes
– Be thorough but avoid over-segmenting: group related files under shared components.
– Capture all essential elements: CLI entry, both compiler versions, interpreter engine, and test harness.