Alyx 1.0
Alyx is a small, readable interpreted language. Its implementation is pure Python and has no runtime dependencies.
Install and run
pip install .
alyx examples/features.alyx
During development, the compatibility command also works:
python alyx.py examples/features.alyx
Language at a glance
fn square(value)
ret value * value
end
total = 0
for value in range(1, 6)
total = total + square(value)
end
if total > 40
out "large: " + str(total)
end
Supported features include numbers, strings, booleans, lists, dictionaries, arithmetic and comparisons; if/elif/else, while, for, break, and continue; lexical closures and returns; classes with this; and relative imports.
Every block starts on the following line and ends with end. Comments start with # or //.
Standard library
len, str, int, float, type, range, push, pop, keys, values, split, join, abs, floor, clock, and assert are built in.
Modules
Use a path relative to the importing file and access exported names through an alias:
import "maths" as maths
out maths.twice(21)
VS Code
The vscode-alyx folder is a minimal extension with .alyx recognition and syntax highlighting. Open that folder in VS Code and package it with npx @vscode/vsce package, then install the generated .vsix.
Development
Run the regression suite with:
python -m unittest discover -s tests
The public Python API is alyxlang.run_source() and alyxlang.run_file().
Metadata
Release files for alyx 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| alyx-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for alyx-1.0.0-py3-none-any.whl |
Release files / alyx-1.0.0-py3-none-any.whl
| Download URL | alyx-1.0.0-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90ad6dd207ba7aa095d4c7a6fdc25cd768505b9776ea924983aed3f760fa88a8
|
|
BLAKE2b-256 checksum How to use checksums |
d496f0d3a55792f6fdc6b411cabf0b1a5541191e3134c804e92335a6c9ccaede
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for alyx 1.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.