Our entry to the langjam
Rust & Python
-
Pip requirements: run
pip install -r requirements.txt
-
Build the lexer crate with
maturin build
-
Install lexer with
pip install ./target/wheels/jai-0.1.1-* # Add a `--force-reinstall` if reinstalling
- If you get something saying
maturin command not foundafter you install it via pip. Try usingpython3 -m pipto install it andpython3 -m maturinto 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
- Run build instructions
- run pytest
variable: type;
variable: type = value;fn myfunc(num: int) -> int {
return num + 10;
}| Name | details |
|---|---|
| int | an integer |
| str | a string |