You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #1 on June 09, 2023 03:14.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Introduction
Jua is a simplified Lua (5.3) implementation written in Java.
The purpose of building this project is to learn:
Features
All of the features above are mentioned above in pure Java.
As I become more familiar with Compiling, I plan to use Antlr and LLVM to refactor it.
To-Do List
Some brief thoughts about Coroutine:
Standard Library
Follow the specification of
http://www.lua.org/manual/5.3/manual.html
Jua provides the standard library functions as below:
Basic
Math
String
Modules
...
Usage
Dependencies
Build Project
To clone the source code and execute the following command to build the package:
https://github.com/kyle-ip/Jua
git clone https://github.com/kyle-ip/Jua.git cd Jua mvn clean package
Alternatively, you can also download the QuickStart package for testing:
https://github.com/kyle-ip/Jua/releases/download/v5.3.5-alpha/jua-5.3.5-alpha.jar
Run script
Edit sum.lua and execute:
Result:
References
If you want to learn more about how to build your own programming language, please refer to these friendly guide books:
https://book.douban.com/subject/27034273
https://book.douban.com/subject/30303705
https://book.douban.com/subject/30348061
License
MIT License
See LICENSE.txt
Beta Was this translation helpful? Give feedback.
All reactions