Skip to content

idjotherwise/interpreters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monorepo of interpreter implementations that I'm working on

Monkeylang

- Go
	- [x] Interpreter
	- [] Compiler
		- [] Bytecodes
- Rust
	- [] Intepreter
		- [] Lexer
		- [] AST
		- [] Eval
- Julia
	- [] Intepreter
		- [x] Lexer
		- [x] AST
		- [x] Eval
		- [x] REPL
		- [] ???

Also contains some monkeylang code snipets, such as doing a sum using a reduce function:

let reduce = fn(arr, initial, f) { let iter = fn(arr, result) { if (len(arr) == 0) { result } else {iter(rest(arr), f(result, first(arr)));}};iter(arr, initial);};

let sum = fn(arr) { reduce(arr, 0, fn(initial, el) { initial + el })};

rlox

Rust implementation of jlox from the Crafting interpreters book

  • [] Interpeter
  • [] Compiler

About

Writting an interpreter in go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published