Skip to content

heldrida/interpreter-in-zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An interpreter written in Zig programming language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages