Lupe
Lupe is a small interpreted scripting language for learning how a language
is designed and run. Scripts use the .lupe extension. The reference
interpreter is this Python package: a handwritten lexer, a recursive-descent
parser, and a tree-walking interpreter.
A script is ordinary text. Blank lines and indentation are insignificant,
and a block ends with end.
Install
pip install lupaxa-lupe
Requires Python 3.11 or newer. The standard library is enough.
From a checkout of this repository:
pip install -e ".[dev]"
Run
lupe, lupaxa-lupe, and python -m lupaxa.lupe are the same program.
lupe run hello.lupe
lupe check hello.lupe
lupe tokens hello.lupe
lupe ast hello.lupe
lupe repl
lupe --version
run executes a file. check parses it and stops. tokens and ast
print the two stages before execution. repl keeps names between lines
and prints the value of a line that is only an expression.
Shebang
A file may start with #!/usr/bin/env lupe. Once lupe is on PATH, the
shell runs that file the same way it runs a shell script. The kernel invokes
lupe with the script path and any arguments that follow it.
examples/hello.lupe is this program:
#!/usr/bin/env lupe
let name = input("Enter your name: ")
print "Hello, " + name
chmod +x hello.lupe
./hello.lupe
lupe hello.lupe is the same direct form. Arguments after the file name
are the script's arguments.
Script Arguments
args() returns those arguments. lupe run takes them after --.
./hello.lupe first second
lupe hello.lupe first second
lupe run hello.lupe -- first second
Documentation
mkdocs/ holds Getting Started, Usage, the Reference, Examples, and
Internals. The published site is https://lupe.thelupaxaproject.org/.
Metadata
Release files for lupaxa-lupe 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lupaxa_lupe-0.1.0.tar.gz | 26.4 kB | With provenance | Details for lupaxa_lupe-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lupaxa_lupe-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lupaxa_lupe-0.1.0-py3-none-any.whl |
Total release size: 58.9 kB
Release files / lupaxa_lupe-0.1.0.tar.gz
| Download URL | lupaxa_lupe-0.1.0.tar.gz |
|---|---|
| Size | 26.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4571c91a375ca0c9cb19bc4a39eb55742a690d5a536d6a885fb03182ae712b5
|
|
BLAKE2b-256 checksum How to use checksums |
a605907677868be5152e7342a65230b66d95fed4af5ffc938a0d6302edec4947
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / lupaxa_lupe-0.1.0-py3-none-any.whl
| Download URL | lupaxa_lupe-0.1.0-py3-none-any.whl |
|---|---|
| Size | 32.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99077d4171573884c3ba01a3ef02ab8ff0b318e38a009a19065440afdf6cb193
|
|
BLAKE2b-256 checksum How to use checksums |
cd651717e915769061a8f3e7681c6e885a49c0963933b9feb2043a74c8a8d562
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for lupaxa-lupe 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lupaxa_lupe-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.