Optimized code runner and implemented basic IDE feature in app.ed

This commit is contained in:
Luxferre
2025-12-26 16:12:08 +02:00
parent e66ebd50a9
commit c6f567b0ba
4 changed files with 53 additions and 7 deletions
+9
View File
@@ -27,6 +27,14 @@ Current installation process doesn't involve any `.mpy` module compilation, so,
As of now, T-DeckARD implements the following component modules.
### `deck.runtime`
A library for establishing runtime compatibility across various Python environments.
Exported functions:
- `runcode(code_string)`: compile and execute a Python program expressed as a string. Used by REPL and some applets.
### `deck.input`
A library for single-line and multi-line (ed-like) text input.
@@ -240,6 +248,7 @@ The editor mode supports the following subset of POSIX ed commands in the standa
- `s/old/new`: replace text in the range (doesn't support regex syntax from POSIX ed)
- `f`: set the current filename to write to
- `w`: save changes to the current filename
- `x`: interpret the range as Python code and execute it immediately
- `q`: quit (`q!` force-quits without prompting for saving changes)
### `app.llmchat`