Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monkey in Zig

Tiny interpreter + REPL for the Monkey language, written in Zig 0.14.0. Source lives in src/, examples in examples/, tests alongside the code.

Build / run

# build and install static lib + executable to zig-out/
zig build

# run the REPL
zig build run

# run a monkey program
zig build run examples/simple.mon

# unit tests
zig build test

Requirements

  • Zig ≥ 0.14.0 (see .tool-versions)
  • No other dependencies – the build script (build.zig) takes care of everything.

Acknowledgments

Huge shout-out to Thorsten Ball for his fantastic book Writing an Interpreter in Go.

About

Simple interpreter in zig, following "Writing An Interpreter In Go" by Thorsten Ball

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages