Skip to content

Golfscript Interpreter in Rust

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

lucarin91/golfscript-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golfscript-rs

A simple Golfscript interpreter in Rust. Currently there are a few missing features, but these should be added soon.

A sample interpreter can be used by running cargo run, but otherwise it is largely library-driven.

Maybe this will have use for when one wishes to embed some Golfscript in Rust.

Challenges

Since Rust lacks the dynamic nature of Ruby (the original interpreter language) we require a lot more explicitness in terms of the underlying interpreter structure. Further, we don't use regexes for parsing, but instead follow a more traditional lex -> (no parse) -> execute phase.

Future Additions

  • Block Statements
  • Final builtin functions
  • Assignment functionality
  • Full test suite
  • Transactional execution (interpreter)
  • Coercion

About

Golfscript Interpreter in Rust

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%