Repository navigation
v0.1
What's Changed
- String nodes by @JakeOJeff in #1
- If statement by @JakeOJeff in #2
- Switch statements by @JakeOJeff in #3
- Setting Switch Statements by @JakeOJeff in #4
New Contributors
- @JakeOJeff made their first contribution in #1
Full Changelog: https://github.com/JakeOJeff/lat/commits/v0.1
Added Local Variables
Added Operators and their Precedence
Added If-Else Statements
Added Function Definitions
Added Function Calling
Added Switch Statements
Added While Loops
Added Love Namespaces and Printing
Setup
[You must have Ruby Installed]
Clone this repo
git clone https://github.com/JakeOJeff/lat.gitWrite the code in a .lat file and set the input location in Compile
inputFile = "path/to/file.lat"Set an Output .lua file in Compile
outputFile = "path/to/file.lua"Compile the code in the terminal
ruby .\compiler\compile.rb
Demo:
2025-11-30.15-07-44.mp4
For ease to test, you can directly write sample code in examples/main.lat provided and on compiling, the output appears in test.lua!