Skip to content

lo3-lang/lo3-core

lo3 programming language

License Release Build Language Platform GitHub Issues or Pull Requests

Note

Claude Code is not used for the core func of this repo. Only for bug fixes, test/*, ...

What is this language about?

lo3 is a token based interpreted programming language written in C.

Website

See Main Website

See learn-the-syntax for examples and documentation.

Run lo3 at your own machine

lo3 {FILENAME}

This will start the interpreter and run your code.

Progress

Feature Status
ALU Operations
Control Flow
Func Calling
Input/STDIN
Output/STDOUT
Operating with vars
Operating with g[] ⚠️ %2%
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

Compile it yourself

Linux:

cmake -B build
cmake --build build
./bin/lo3 test.lo3

or with the bash script:

chmod +x fbuild
./fbuild

Win:

cmake -B build
cmake --build build
.\bin\lo3.exe test.lo3

Add it to the PATH

Linux:

If 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 ...

Windows:

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

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

About

This is my own programming language. Parser is coded in C and tests are written in Python / C. Code is structured like on x86, but i am using intel and both atnt features at once. Check it out!

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages