added hsargs, hsexit and bundler mode

This commit is contained in:
Luxferre
2026-07-04 08:52:56 +03:00
parent 10f0b39d8e
commit 4fc3ee518a
7 changed files with 116 additions and 1 deletions
+8
View File
@@ -282,6 +282,14 @@ Any line fragment starting with `#` to the end of the physical source line is re
- **Stack Effect**: `( -- )`
- **Description**: Prints the current stack representation to standard output (useful for debugging).
### `hsargs` (Host Arguments)
- **Stack Effect**: `( -- [args] )`
- **Description**: Pushes a list/quotation of all passed command line arguments onto the stack.
### `hsexit` (Host Exit)
- **Stack Effect**: `( code -- )`
- **Description**: Exits the program/interpreter with the specified exit code.
### `hseval` (Host Language Evaluation)
- **Stack Effect**: `( expr -- val )`
- **Description**: Pops the string `expr` from the stack, evaluates it as an expression in the host language (e.g., Python), and pushes the resulting value back onto the stack.