yasl
yasl copied to clipboard
Bytecode Interpreter for Yet Another Scripting Language (YASL).
Currently some duplicated logic that can be pulled out into functions, left over from years ago. Also have some weird logic to deal with stack vs function params, which can...
so something like ``` match x { let x & [ ... ] { echo "list: #{x}" } * { echo 'not a list' } } ``` This should have...
Consider `''[2]` for example. Error message is completely unclear.
TCC wasnt working with #pragma once
Things that could be improved: - better opcodes for shorter integers - specialised opcodes for certain common operations like storing immediate values. - remove specialised int opcodes. - opcode for...
It's probably the dynamic man's enumeration. Example: ``` # symbols might require declaration, either in code or at the host/vm side symbol $yes, $no, $maybe fn doSomething(really) { # booleans...
printing out the line text (as well as number) and indicating which column the error occurred in seems like a good place to start.
New Features: - `list->search` and `str->search` now takes an additional optional parameter (the starting position). - `str->search` now returns the end position of the found `str` (as well as the...