This is a basic implementation of an IMP language interpreter in Javascript. It's a toy language and i did this so i could play around with Parser Combinators.
It's not a complete implementation..
npm install
npm run test
node index.js test.imp
x := 1
if x = 1 then
y := 2
else
y := 3
end
while x < 10 do
x := x + 1
end
x := 1;
y := 2
- [] Improve readme
- [] Improve tests
- [] Add example
- [] Add support for Booleans