Kval
Kval is a statically typed programming language runtime and toolchain implemented in Python.
Quick Start
Requirements:
- Python 3.10+
Run a .kval file:
python -m Kval run path/to/file.kval
Compile a .kval file:
python -m Kval compile path/to/file.kval
Project Structure
Core/parser, type checker, runtime, VMDoc/language documentationLib/standard modules and include search pathPyModules/Python bridge modulestests/grammar and behavior testsSupports/Kval-language-support/VS Code language extension
Language Docs
- Chinese grammar:
Doc/Grammar(zh-cn).md - English grammar:
Doc/Grammar(en).md - Chinese standard library:
Doc/StdLib(zh-cn).md - English standard library:
Doc/StdLib(en).md - Chinese stdlib quick reference:
Doc/StdLib-QuickRef(zh-cn).md - English stdlib quick reference:
Doc/StdLib-QuickRef(en).md - Engineering guide:
Doc/Engineering.md
VS Code Extension
Extension source is in Supports/Kval-language-support/.
Build:
npm run compile
Package:
npm run vsix
CI
This repository includes GitHub Actions CI in .github/workflows/ci.yml.
It runs checks on push and pull requests, and only runs jobs when related files change:
- Python quality (
Core/,tests/, CLI/tooling files):ruff check Core tests cli.py __main__.pyblack --check Core tests cli.py __main__.pypytest
- VS Code extension quality (
Supports/Kval-language-support/**):npm installnpm run lintnpm run format:checknpm run compile
Other CI details:
- Concurrency is enabled to cancel older in-progress runs on the same branch.
- Python quality runs on Python
3.10and3.11.
To reproduce locally:
ruff check Core tests cli.py __main__.py
black --check Core tests cli.py __main__.py
pytest
cd Supports/Kval-language-support
npm install
npm run lint
npm run format:check
npm run compile
License
MIT License. See LICENSE.
Metadata
Release files for kval-lang 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 |
|---|---|---|---|---|
| kval_lang-0.1.0.tar.gz | 3.3 kB | Without provenance | Details for kval_lang-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kval_lang-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for kval_lang-0.1.0-py3-none-any.whl |
Total release size: 6.5 kB
Release files / kval_lang-0.1.0.tar.gz
| Download URL | kval_lang-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d26790c0f103b5f0b9f6fc3566535eecb8534ff58b09a2df8bc365d1f6e294a
|
|
BLAKE2b-256 checksum How to use checksums |
f945a5c725b56735fd2bf068516a3516ef061d9cd0a3e665ff8e92b509e74b4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / kval_lang-0.1.0-py3-none-any.whl
| Download URL | kval_lang-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7625af22d48270640d223f09360fb3e5dfab7ef37d6cbb5a13c460705dc65f7
|
|
BLAKE2b-256 checksum How to use checksums |
085475d1943bfb16d3abb530202d4dfa7a158375f4d3d4fda68ffe58b0e8973b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for kval-lang 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.
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.