raz / src / Parse.raz

history · 60 commits · the file

e99cab9bLuis <42945842+ldiaz94@users.noreply.github.com>Gen.arm64: reals, FILL, bit counts and rotations; nothing left not yet
2b92b442Luis <42945842+ldiaz94@users.noreply.github.com>The first programs for darwin-arm64, run on the Mac: Gen.arm64, Exe.darwin
6d1c7219Luis <42945842+ldiaz94@users.noreply.github.com>src: Gen.x86_64, Exe.linux and Host.linux, the target's units; src/cross.sh
dafe42afLuis <42945842+ldiaz94@users.noreply.github.com>raz -q def: a module is its name in its module line, and an import's name answers too
d70fd8f0Luis <42945842+ldiaz94@users.noreply.github.com>raz -q def: where the name at the cursor is declared
5afc418bLuis <42945842+ldiaz94@users.noreply.github.com>raz -q: check and words, for an editor's language server
384eba2aLuis <42945842+ldiaz94@users.noreply.github.com>A code procedure's body has a scope of its own: a name it uses before its declaration is one error, not two
a072a400Luis <42945842+ldiaz94@users.noreply.github.com>Assembler: a procedure or a module variable stands for its address in call p, jmp p and lea r, [v]
b95e2655Luis <42945842+ldiaz94@users.noreply.github.com>Limits: statements, expressions and types nested stop at 256, the stack of values says its limit and ends the compile, a ninth type argument names its limit; tests and compiler.md
5d91876dLuis <42945842+ldiaz94@users.noreply.github.com>Preserve root directories when resolving module files
4e3969aaLuis <42945842+ldiaz94@users.noreply.github.com>Use portable file metadata for module identity
4402a682Luis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.37 is the rule: the old forms are errors, -strict and RAZ_STRICT gone
04d8e1a9Luis <42945842+ldiaz94@users.noreply.github.com>src/ held to report 2026-10.37 whole: import SYSTEM where it reaches memory so
e0d008cdLuis <42945842+ldiaz94@users.noreply.github.com>lib/ held to report 2026-10.37 whole: import SYSTEM, []const, atomics on a variable
81cb2aeeLuis <42945842+ldiaz94@users.noreply.github.com>raz -strict: report 2026-10.37 held whole, until v0.24.0 makes it the rule
e33d4214Luis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.37: import SYSTEM, and what reaches memory other than through a variable
b5e76eabLuis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.37: []const T, a slice whose elements can't be written through it
4d6f1bcaLuis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.37: CAS, XCHG and XADD take a variable
88e6b860Luis <42945842+ldiaz94@users.noreply.github.com>Inlining a procedure that only returns: a call of one whose body is return e, with no locals and a single value its result, is made in place (Parse.inlined): the arguments as for a call into temporaries, each once and in order, then e read again in its own module's scope with its checks; imported and generic procedures too, a recursion ending in a call; a failed check in e told at e's line in its file (Gen's check works out the place as it is made); KeptCheck and KeptNil call through a procedure value, the tutorial's Fail through a procedure with no result; word count 887 ms to 638, Grep 268 to 199, the compiler 3% fewer instructions; conform/run/Inline, test/run/InlineCheck
1a0e8ddeLuis <42945842+ldiaz94@users.noreply.github.com>ABS: a number without its sign, as report 2026-10.36 has it
16eaf7cbLuis <42945842+ldiaz94@users.noreply.github.com>A parameter kept in rdi or rsi that a copy wants takes callee-saved registers no variable has, if it is used enough for one, not memory: unkeep, on lost (ChaCha's block that starts out := st 1,132 ms to 684)
bbc103ebLuis <42945842+ldiaz94@users.noreply.github.com>A procedure type's parameter or result may name a type declared later in its type section, as report 2026-10.36 has it: laterType gives a placeholder, as a pointer's base had, and resolveLaters puts the type in its place at the section's end, laying several results out again; Sym.Type's fwd is gone
e19ed1d8Luis <42945842+ldiaz94@users.noreply.github.com>FILL(d, x): every element of an array or slice set to x, as report 2026-10.36 has it: rep stos of the element's width, a loop of stores for a short slice, a store each for a short array, and a record copied forward by rep movsb (10M fills of 10 U32s 52 ms to 37 against the loop, of 1,000 2,500 to 490)
73c1f3acLuis <42945842+ldiaz94@users.noreply.github.com>An ERROR constant given another is that same error, its chunk, so const Short*: ERROR = PictBase.Short; makes Short = PictBase.Short hold, as report 2026-10.36 has it
3fb27192Luis <42945842+ldiaz94@users.noreply.github.com>A constant's slice part written as an array literal, an array constant of its own in a chunk with no name, nested to any depth, as report 2026-10.36 has it
16ccda37Luis <42945842+ldiaz94@users.noreply.github.com>A match arm names its case alone or qualified as anywhere else, Kind.done, Xml.done or Xml.Kind.done, read by qualIdent and checked against the matched type, as report 2026-10.36 has it
8e0ec9ceLuis <42945842+ldiaz94@users.noreply.github.com>BYTES(x): a variable's bytes as a []U8, as report 2026-10.36 has them
32b1a75bLuis <42945842+ldiaz94@users.noreply.github.com>OFFSET(T, f) and SIZE(T.f): a field's place and size, as report 2026-10.36 has them
597cec35Luis <42945842+ldiaz94@users.noreply.github.com>CLZ, CTZ and POPCOUNT: counts of bits, as report 2026-10.36 has them
f1ef1ab0Luis <42945842+ldiaz94@users.noreply.github.com>MIN and MAX: the limits of an integer type, as report 2026-10.36 has them
a48b818dLuis <42945842+ldiaz94@users.noreply.github.com>Warnings: an = or # of two BOOLs beside and or or, and \0 before a digit in a string
122c3f10Luis <42945842+ldiaz94@users.noreply.github.com>Messages: a match arm's unused field, a blanked field and _ for the other arms say what to write instead
070e473dLuis <42945842+ldiaz94@users.noreply.github.com>An error in a library from -I or RAZ_PATH says the raz its RAZ-VERSION names
566e0c1eLuis <42945842+ldiaz94@users.noreply.github.com>Parse: say a typed set constant takes its type from its names
065335aaLuis <42945842+ldiaz94@users.noreply.github.com>Parse: a named record or array constant as an element of a constant
61fa4786Luis <42945842+ldiaz94@users.noreply.github.com>ROL and ROR: rotations, as report 2026-10.35 has them
ecf32b3bLuis <42945842+ldiaz94@users.noreply.github.com>Find installed source libraries through RAZ_PATH
0d0c6bb1Luis <42945842+ldiaz94@users.noreply.github.com>The compiler: PTR(s) (report 2026-10.34, section 6.8)
500f3369Luis <42945842+ldiaz94@users.noreply.github.com>src/'s Items only read on every program's paths are const
c8d9a160Luis <42945842+ldiaz94@users.noreply.github.com>Sys's directories take the Dir by var (report 2026-10.33)
3fee2db6Luis <42945842+ldiaz94@users.noreply.github.com>Buf, Files, Fmt and Str take the Buf by var (report 2026-10.33)
71a95b30Luis <42945842+ldiaz94@users.noreply.github.com>The compiler: a variant in a constant (report 2026-10.33, section 4)
b13f87f8Luis <42945842+ldiaz94@users.noreply.github.com>The compiler: const parameters (report 2026-10.33, section 8)
0081856cLuis <42945842+ldiaz94@users.noreply.github.com>A constant's slice part may name another module's array constant
ae6fc91dLuis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.32, the eighth thaw: the empty slice constant
27a380c2Luis <42945842+ldiaz94@users.noreply.github.com>A comment that ended early is shown where it ended
f1077724Luis <42945842+ldiaz94@users.noreply.github.com>A name like FFFDH, undeclared, gets help: write 0FFFDH
3e1c4e5bLuis <42945842+ldiaz94@users.noreply.github.com>Enumerations' names with their types (report 2026-10.31)
bfb7ab7cLuis <42945842+ldiaz94@users.noreply.github.com>continue (report 2026-10.31)
182251daLuis <42945842+ldiaz94@users.noreply.github.com>An array constant typed []T takes its literal's length (report 2026-10.29)
f784f531Luis <42945842+ldiaz94@users.noreply.github.com>Views, v.(T): the bytes of a variable read and written as another type
f4ad1385Luis <42945842+ldiaz94@users.noreply.github.com>An INT widens to an I64 wherever it goes to one, in an expression too
72b1a71dLuis <42945842+ldiaz94@users.noreply.github.com>A var real parameter's address in an integer register
768afb54Luis <42945842+ldiaz94@users.noreply.github.com>match on a string
84647412Luis <42945842+ldiaz94@users.noreply.github.com>Four more registers for reals in a procedure that calls nothing
3c704507Luis <42945842+ldiaz94@users.noreply.github.com>A for loop's limit in a register left free
787085c3Luis <42945842+ldiaz94@users.noreply.github.com>A square root in place of a call
b056b617Luis <42945842+ldiaz94@users.noreply.github.com>chooseRegs: an end with no begin before it no longer indexes before the stack (found by the fuzz on a new test)
a4f60016Luis <42945842+ldiaz94@users.noreply.github.com>The compiler's code, faster: 1.8 times the seed's time to 1.4
596c810aLuis <42945842+ldiaz94@users.noreply.github.com>src/ is the compiler in raz; the Pascal seed moves to seed/