Note
Claude Code is not used for the core func of this repo. Only for bug fixes, test/*, ...
lo3 is a token based interpreted programming language written in C.
See Main Website
See learn-the-syntax for examples and documentation.
lo3 {FILENAME}This will start the interpreter and run your code.
| Feature | Status |
|---|---|
| ALU Operations | ✅ |
| Control Flow | ✅ |
| Func Calling | ✅ |
| Input/STDIN | ✅ |
| Output/STDOUT | ✅ |
| Operating with vars | ✅ |
| Operating with g[] | |
| Manually exiting with 0 or 1 | ✅ |
| Auto exiting | ✅ |
%2%: to set some value into g[] is only possible with the buildin macro system. get g[X]... from every cmd
cmake -B build
cmake --build build
./bin/lo3 test.lo3or with the bash script:
chmod +x fbuild
./fbuildcmake -B build
cmake --build build
.\bin\lo3.exe test.lo3If you are root / have rights to sudo:
sudo cp ./bin/lo3 /usr/local/bin/
Or if you dont:
cp ./bin/lo3 ~/.local/bin/
export PATH="$HOME/.local/bin:$PATH"
Then you can just write
lo3 ...
Press Win+R input sysdm.cpl
In more (or any other name) > Environment Variables
In path add a new index and input there the path to this program.
For example:
C:\Users\yourUserName\Desktop\lo3-core\build\
Tests are written in C++, Rust and Python to avoid language-level bias when testing a C core.
# run all tests
cmake --build build --target test