A port of Lua written in pure Crystal.
For now, these are the major goals that are on the road map.
- Lexer
- Parser
- Types
- Basic Execution
I will expand/update this as parts get written.
- Add the dependency to your
shard.yml
:
dependencies:
crystal-lua:
github: bbuck/crystal-lua
- Run
shards install
require "lua"
I like building languages. I have a scripting language I wrote for Ruby (it's not in a usable state right now due to some bugs). This project gives me an opportunity to write in a language similar to Ruby (Crystal), build a scripting language (Lua), and learn how a real language is implemented so that I can hopefully apply this knowledge in the future on other projects.
Nope. At least not right now. The intent is a ground up port (not direct) of the Lua (at the time of this writing) 5.4.2 implementation. So right now this project doesn't do anything related to executing Lua code. In the future, hopefully this project will be useful in providing another Lua VM for Crystal programs.
- Fork it (https://github.com/bbuck/crystal-lua/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Brandon Buck - creator and maintainer