jai
·135 words·1 min
Jai#
Our entry to the langjam
Requirements: #
Rust & Python
Pip requirements: run
pip install -r requirements.txt
Build instructions #
Build the lexer crate with
maturin build
Install lexer with
pip install ./target/wheels/jai-0.1.1-* # Add a `--force-reinstall` if reinstalling
Troubleshooting #
- If you get something saying
maturin command not found
after you install it via pip. Try usingpython3 -m pip
to install it andpython3 -m maturin
to run it. - If jai does not seem to change after editing the source, make sure to do the build instructions again and use
--force-reinstall
Test #
- Run build instructions
- run pytest
Syntax #
Variable #
variable: type;
variable: type = value;
Functions #
fn myfunc(num: int) -> int {
return num + 10;
}
Types #
Name | details |
---|---|
int | an integer |
str | a string |