Skip to content

Microflame/Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is my implementation of the first half of https://craftinginterpreters.com/ but in C++.

Build

Tested under gcc-9:

mkdir build && cd build
cmake ..
make

Run Example

./src/Interp ../example.inp

should result in:

==== print() examples ====
This "escaped_string" contains \
61
==== while loop example ====
i = 1 / 5
i = 2 / 5
i = 3 / 5
i = 4 / 5
i = 5 / 5
==== closure example ====
counter result = 1
counter result = 2
counter result = 3
==== inheritance example ====
A method
B method

see example.inp to better understand what is happening.

About

A simple interpretable language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages