Skip to content

Andree37/interpreter-zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Following the book "Writing an Interpreter in Go" by Thorsten Ball, but in Zig.

Run the repl

zig build run

and then we can type some code, for example:

╰─λ zig build run
>> let a = 5;
5
>> let b = a > 3;
true
>> let c = a * 99;
495
>> if (b) { 10 } else { 1 };
10
>> let d = if (c > a) { 99 } else { 100 } ;
99
>> d
99
>> d * c * a;
245025

Run the Tests

zig build test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages