Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 1.31 KB

README.md

File metadata and controls

42 lines (24 loc) · 1.31 KB

Commitizen friendly

An interpreter in Zig

An interpreter, created as a learning playground for both Zig and interpreter.

The interpreter does the process of tokenization, parses source-code in a REPL, transforms the input into a AST, and evaluates the tree.

Build executable

To build an executable, run the following cmd:

zig build-exe src/main.zig -O ReleaseSafe --name bin

It'll generate bin, which you'd want to execute by:

./bin

References

Lexical analysis

Abstract Syntax tree

Parsing

Top-down parsing

Zig documentation

Logo

Repository icon made by Freepik from www.flaticon.com