A minimal interpreter written in C
The name "mylang" is temporary and may change in the future.
├── main.c # Entry point
├── lexer.c # Lexical analysis
├── lexer.h
├── parser.c # Syntax analysis
├── parser.h
├── token.h # Token definitions
├── env.c # Variable store
├── env.h
└── Makefile # Build
x = "hello"
print(x)
print("Hello world")
Make
make Run
./run test.txt- Hello World
- Variables
- Numbers
- Expressions
- AST