A tree-walking interpreter and terminal-based editor for the Rubus language.
Project description
##Rubus
-->A tree-walking interpreter for the custom Rubus programming language, bundled with rubed, a lightweight, terminal-based text editor built specifically for writing and executing .rub files. Overview
-->The Rubus ecosystem consists of a Python-like, indentation-based programming language and a dedicated command-line environment. The interpreter processes raw source code through a lexer and parser to build an Abstract Syntax Tree (AST), which is then directly executed without an intermediate compilation step or bytecode generation. Features ##The Rubus Language
-(if/elif/else, for, while).
-support for integers, floats, booleans, strings, and f-strings.
-Built-in lists, dictionaries, sets, and tuples.
-List and dictionary comprehensions.
-Custom struct definitions
-function definitions (def) and variable declarations (let).
-lexical scoping and environment management for variables.
##The Rubus Editor (rubed)
-->Terminal-Native: Built with curses for a seamless command-line workflow.
Syntax Highlighting: Real-time colorization for keywords, types, strings, numbers, comments, and operators.
Integrated Execution: Run your .rub scripts directly from within the editor.
Core Keybindings:
-->Ctrl+S: Save file
-->Ctrl+R: Run the current file through the Rubus interpreter
-->Ctrl+N: Open a new buffer
-->Ctrl+O: Open an existing file
-->Ctrl+Q: Quit (with unsaved changes prompt)
##Usage
-You can use rubed.py as both an interactive editor and a headless runner for your scripts.
Launch the editor with an empty buffer: bash
python rubed.py
Open a specific file in the editor:
bash
python rubed.py path/to/script.rub
Run a script headlessly (no need for the editor):
python rubed.py path/to/script.rub --run
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rubus_b1-0.1.0.tar.gz.
File metadata
- Download URL: rubus_b1-0.1.0.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee2f8c29b05e6ebaa824edba4d850031ad0b4cd6c308af8126c489e8f4d3a0c4
|
|
| MD5 |
dab03879418b19fcf09674074145c9cf
|
|
| BLAKE2b-256 |
be38d3d7876f69f20dfb7b7074ab27c0c274810ef1e7a67f0f1a95fc7bc3bd02
|
File details
Details for the file rubus_b1-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rubus_b1-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de42668801a2431825c13751ca04f19ae8dea705d421689edcf84b030dbdc4a1
|
|
| MD5 |
2903111ea0cf0fc6bffb23ab0b5ddede
|
|
| BLAKE2b-256 |
1d7bb7b9b9eabb16e125b475517ba0b1f478fb78289ca044e552bf8b5539f5fb
|