Skip to content

jaredh159/monkey-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monkey-swift

my second time writing an intepreter for thorsten ball's monkey language, this time in Swift

https://interpreterbook.com/

usage

# start up the monkey REPL
$ swift run

# evaluate a fragment of monkey code and exit
$ swift run monkey eval "1 + 2"
# > 3

# run ALL unit tests
$ swift run monkey test all

# run individual test suites
$ swift run monkey test ast
$ swift run monkey test lexer
$ swift run monkey test parser
$ swift run monkey test eval
$ swift run monkey test symbol
$ swift run monkey test code
$ swift run monkey test vm
$ swift run monkey test compiler

# run binary unit test
$ swift test

# build: if you're using SourceKit-LSP outside of Xcode
# this command helps SourceKit-LSP know about all source files
$ swift build

Do you love C programs that call malloc() hundreds of times with nary a free() in sight? Check out my implementation of Monkey in C!

About

interpreter for thorsten ball's monkey language, written in Swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages