Conversation
This was referenced Aug 25, 2026
…Int, CONST Rebuilt on DEROFDN community-dev (post-DEROFDN#129 func_table refactor). L1 FOR/WHILE/block-IF, L2 GOSUB, L3 arrays+arrlen, L4 mapkeys, L6 Bool, L7 CONST, L8 version gate, L9 Int. All Locals-only (consensus-neutral). arrlen/mapkeys func_table entries merged into the refactored grouped map. 33 language tests pass, full dvm suite green.
liqdmetal
force-pushed
the
feat/dvm-language
branch
from
August 31, 2026 12:20
0f3c9fb to
1ee2cf4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
One reviewable PR replacing seven stacked PRs (#101, #103, #107, #109, #111,
#115, #117). The complete DVM v10 language: structured BASIC.
What's in it
FOR x = a TO b [STEP z]/NEXT,WHILE/WEND, blockIF/ELSE/ENDIFGOSUB <line>/RETURNDIM a(n) AS type,a[i],arrlen(a)mapkeys()DIM b AS Bool,TRUE/FALSE,&&/`CONST name = valueversion("10.0.0")DIM i AS Int, negative literals, signed arithmeticDesign notes (why it's safe)
>=10.0.0— pre-fork contracts can never accidentally parse newsyntax (
gateControlFlowrejects versions withoutversion()).*[]Variable), Bool, Int are Locals-only — never serialized toRamStore/storage, so the change is consensus-neutral on the state tree.Variable.Arrayis a pointer soVariablestays comparable (it's a map key).IF THEN GOTO(untouched).RETURNpops theCallStackwhen non-empty (subroutine return), otherwisethe existing function-return semantics are unchanged.
Tests
14 files, 8 control-flow test suites (L1–L9) covering: FOR sum/step/nesting,
WHILE countdown, IF/ELSE both branches, nested GOSUB, array fill via loop +
get/set + arrlen, Bool logic + params, CONST immutability, Int negative
arithmetic, and version-gate rejection. Plus a wargame test.
Supersedes
Closes #101, #103, #107, #109, #111, #115, #117 in favour of this single
package.