Lizard
Lizard is a Python‑compatible language that adds curly braces and optional semicolons to Python syntax, with a self‑hosted compiler that targets clean Python via the ast module. |
def hello_world() {
print("Hello World!");
}
if True {
hello_world();
}
Transpiled output:
def hello_world():
print('Hello World!')
if True:
hello_world()
Features
- Python‑compatible syntax with
{}blocks and optional; - Lexer → parser → AST →
ast.unparsepipeline (no text‑based indentation tricks) - Supports comprehensions, decorators, and triple‑quoted strings
- Runs on the standard Python runtime
- Self‑hosting compiler (Lizard in Lizard), bootstrapped from Python
- VSCode syntax highlighting support
Examples
- Hello world:
examples/hello.lz - Factorial:
examples/factorial.lz - Comprehensions + dict/set literals:
examples/comprehensions.lz - Decorators:
examples/decorators.lz - Multiline strings:
examples/multiline_strings.lz
Installation
- PyPI: lizard-lang
- VSCode Extension: Lizard Lang
pip install lizard-lang
Run:
lizard examples/hello.lz
Development
pytest
Current Status
Lizard is experimental.
Implemented:
- lexer + parser + AST pipeline
- brace blocks and semicolon‑optional syntax
- Python code generation via
ast.unparse - self‑hosting compiler (Lizard in Lizard)
Planned:
- formatter
- LSP support
- LLVM + hybrid FFI backend
Why?
Because some developers prefer:
if (condition) {
doSomething();
}
over:
if condition:
do_something()
Lizard explores whether Python can support both styles while staying fully compatible with Python semantics.
License
MIT
Metadata
Release files for lizard-lang 1.0.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 |
|---|---|---|---|---|
| lizard_lang-1.0.0.tar.gz | 15.3 kB | Without provenance | Details for lizard_lang-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lizard_lang-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for lizard_lang-1.0.0-py3-none-any.whl |
Total release size: 32.6 kB
Release files / lizard_lang-1.0.0.tar.gz
| Download URL | lizard_lang-1.0.0.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad4891ec6213f39bae57fa0bba750218cbc18c8328edf25c2bfaf644b9d7e99e
|
|
BLAKE2b-256 checksum How to use checksums |
a6e53f88f7d2f9447616e9ef9244c9872597be09ea5d529993b3555ee68d676a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / lizard_lang-1.0.0-py3-none-any.whl
| Download URL | lizard_lang-1.0.0-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a151131cb72b6cbb822cfd45b567241479f9d22c1a1c16c9ef7f906164ea36f7
|
|
BLAKE2b-256 checksum How to use checksums |
e3cf05693581cfd4de5715473251d1333428b923d17e76dd58a62ba73d68014b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for lizard-lang 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.