| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
A new draft of docs as I build out mu.subx. Once we have the second Mu
language, it makes sense to relegate most of the underlying SubX docs to
a separate doc.
I want each layer to be learned bottom-up as I've been organizing SubX
so far. But it's counter-productive to require people to learn SubX before
Mu.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After much struggle, one more test: emitting a primitive with a register
operand.
The following two instructions have the same name:
reg <- increment
increment var
and they emit the same opcodes:
ff 0/subop
But they're considered distinct policies in the code-generation 'table',
one for incrementing variables on the stack and the other for incrementing
variables in a register.
|
|
|
|
|
|
| |
I've been under-estimating the complexity of translating primitive statements.
We need to separately track information for each primitive about operands
for both the source and emitted SubX notation.
|
| |
|
| |
|
|
|
|
| |
No, let's represent register as just a string to save a translation.
|
|
|
|
|
| |
Support variables at positive stack offsets (formal parameters for functions),
and also an indicator for 'any register' for primitive operations.
|
| |
|
|
|
|
| |
Add mu.subx to CI.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Rethink how vars are organized. We need separate aggregates for vars in
the definition stack, defined in function headers, and used by statement
operands. So now vars have no 'next' fields themselves. The definition
stack will be a real stack, while the function headers and statement operands
will have separate 'next' fields.
|
|
|
|
| |
Switching gears to emitting function calls. The function name is working now.
|
|
|
|
| |
No, we need to handle primitives and calls separately.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Just a random snapshot of mu.subx. The two new tests aren't passing yet.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Already http://akkartik.name/post/mu-2019-2 is out of date.
|
| |
|
|
|
|
| |
http://akkartik.name/post/mu-2019-2
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Clean up pseudocode to match planned syntax for the type- and memory-safe
level-2 Mu language.
http://akkartik.name/post/mu-2019-2 is already out of date.
|
|
|
|
| |
Replace calculations of constants with labels.
|
| |
|
|\
| |
| | |
Simplify loop
|
| | |
|
|\ \
| |/
|/| |
Raise an error if too few arguments are provided
|
|/
|
|
| |
This is a notably better user experience than an assert failing.
|
| |
|
| |
|
|
|
|
|
| |
Thanks Mateusz Czapliński for the feedback:
https://lobste.rs/s/xtxlec/mu_minimal_hobbyist_computing_stack#c_1mzq94
|
| |
|
|
|
|
| |
Minor tweaks based on feedback from Max Bernstein.
|
|
|
|
|
|
|
| |
Fix https://github.com/akkartik/mu/issues/38: gen_soso_iso on Arch Linux.
Also deemphasize bootable disk images in the Readme since that side's less
mature.
|
|
|
|
| |
This commit fixes #37. Thanks Thomas Munoz!
|
| |
|
| |
|
| |
|