feat: implement vm #1

Merged
samsonium merged 34 commits from vm into master 2026-10-16 15:31:49 +00:00
Owner
No description provided.
samsonium added 1 commit 2026-10-10 02:39:45 +00:00
samsonium added 1 commit 2026-10-10 16:47:58 +00:00
samsonium added 21 commits 2026-10-13 22:00:13 +00:00
- UPD: now using `.fzs` (fromzero-source) file extension instead of
`.fzc`
- FEAT: add new examples: problematic hello world with unterminated
string and empty printline
- FEAT: add source code length field in `fzl_reader_t` struct
- FIX: check name, lpair (lparen) and rpair (rparen) when lexing call
- FIX: check string literal termination
- FIX: increment position even on empty string to prevent infinite
lexing loop
- FIX: add string terminator in `fzl_mktoken` when allocating space for
string value
- FIX: add check for errors in recursevly called `walk`
- FIX: change source code holder from stack-stored `char[8192]` to
dynamically allocated with actual file size holder
- FIX: correct constant hasing util to hash actual string value instead
of link
Add rules for more comfortable work with switch-case blocks
samsonium added 1 commit 2026-10-13 22:09:59 +00:00
samsonium added 2 commits 2026-10-14 17:17:22 +00:00
samsonium added 1 commit 2026-10-14 23:23:54 +00:00
samsonium added 1 commit 2026-10-15 00:07:23 +00:00
samsonium added 2 commits 2026-10-15 14:21:33 +00:00
- Add comments and test for it
- Add semicolon as required end of some expressions
- Add new arguments parser
- Add multi-file compilation
- Add colors in output
samsonium added 2 commits 2026-10-16 15:11:47 +00:00
samsonium added 2 commits 2026-10-16 15:31:24 +00:00
samsonium merged commit 2d307d9d42 into master 2026-10-16 15:31:49 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: samsonium/fz-lang#1