Raymon Zutekouw
|
e0257e3675
|
Implement addv and subv
|
4 years ago |
Raymon Zutekouw
|
3df579984b
|
Extract pointing to mem_address to new instruction
- pointa, point now uses this instruction
|
4 years ago |
Raymon Zutekouw
|
ce2da7ac89
|
Parse constants unsigned
|
4 years ago |
Raymon Zutekouw
|
1d5b4bf137
|
Remove field value from MemCell
- plans for a directly interpreted mblf mode have been scrapped
- it's MBLF, not MBNF
|
4 years ago |
Raymon Zutekouw
|
8e4e1a8861
|
Remove addb and subb
- add and sub will be optimized based on the operand
|
4 years ago |
Raymon Zutekouw
|
1f18d080e1
|
Extract non-expanding instructions to `to_bf`
|
4 years ago |
Raymon Zutekouw
|
28524a075f
|
Remove match on Rule::instruction
|
4 years ago |
Raymon Zutekouw
|
bacee8fbd0
|
Implement #include
|
4 years ago |
Raymon Zutekouw
|
fdc242a685
|
Implement loopBlock
|
4 years ago |
Raymon Zutekouw
|
65b2dd4f2f
|
Implement print
|
4 years ago |
Raymon Zutekouw
|
077637fb12
|
Implement getchr
|
4 years ago |
Raymon Zutekouw
|
c59dc8fad4
|
Implement setz
|
4 years ago |
Raymon Zutekouw
|
5ce39f26fd
|
Implement basic add and sub
|
4 years ago |
Raymon Zutekouw
|
c41b3535c6
|
Remove field is_allocated from MemCell
|
4 years ago |
Raymon Zutekouw
|
1bc631d061
|
Implement pointm
|
4 years ago |
Raymon Zutekouw
|
458c493504
|
Implement point
|
4 years ago |
Raymon Zutekouw
|
0360a852a5
|
Implement delvar
|
4 years ago |
Raymon Zutekouw
|
dd0766ee97
|
Panic on duplicate variable creation
|
4 years ago |
Raymon Zutekouw
|
04e94b4934
|
Implement var
|
4 years ago |
Raymon Zutekouw
|
be60afac3e
|
Fill-in struct fields
|
4 years ago |
Raymon Zutekouw
|
448b2a151f
|
Pass state to instruct
state will store:
- variable positions
|
4 years ago |
Raymon Zutekouw
|
e96a4ae6fb
|
Allow newlines between comments and statements
|
4 years ago |
Raymon Zutekouw
|
4c78808d90
|
Cleanup grammar file
- Formatting
- Remove generic `operator` and `operand`
- used for testing
|
4 years ago |
Raymon Zutekouw
|
c0b052cf5c
|
Match macro #include
|
4 years ago |
Raymon Zutekouw
|
df9ffbcf29
|
Explicitly allow spacing before loopBlockEnd
- Inherited prefixed `spacing*` only applied to loopBlockStart,
- as the rule from statement only allowed spacing before the entire loopBlock
|
4 years ago |
Raymon Zutekouw
|
1affaee503
|
Allow most common word separators for variables
- Also includes '?' suffix for bools
|
4 years ago |
Raymon Zutekouw
|
a705d3a8df
|
Correct example.mblf with no-arg print
|
4 years ago |
Raymon Zutekouw
|
d271e313c5
|
Extend numeric operations to constant operations
- Besides decNums and hexNums, characters are also valid
|
4 years ago |
Raymon Zutekouw
|
f1d35ff795
|
Match all instructions without arguments
|
4 years ago |
Raymon Zutekouw
|
94d89c51e8
|
Match all instructions with number argument
|
4 years ago |
Raymon Zutekouw
|
1430e51c11
|
Print other Rules to stdout
- Entire parsed file in readable form to stdout
|
4 years ago |
Raymon Zutekouw
|
11bdac46b9
|
Match all instructions with variable argument
|
4 years ago |
Raymon Zutekouw
|
a25ad02b48
|
Use built-in NEWLINE Rule
|
4 years ago |
Raymon Zutekouw
|
c2394eec38
|
Allow extra newlines between statements
|
4 years ago |
Raymon Zutekouw
|
d7144383e7
|
Allow comments on their own line
|
4 years ago |
Raymon Zutekouw
|
2a7a4ca8b2
|
Allow indented statements
|
4 years ago |
Raymon Zutekouw
|
8b62a51a64
|
Allow either spaces or tabs as spacing
|
4 years ago |
Raymon Zutekouw
|
f473c6b50d
|
Extract newline grammar rule
|
4 years ago |
Raymon Zutekouw
|
ff9fd2f311
|
Enforce newlines around body of loopBlock
- The start and end of the loopBlock should be on their own line
|
4 years ago |
Raymon Zutekouw
|
755e2f1b53
|
Ensure operand is optional: only 0 or 1
|
4 years ago |
Raymon Zutekouw
|
859f1df4b8
|
Allow nested loopBlocks
- loopBlocks now contain statements i.o. instructions
|
4 years ago |
Raymon Zutekouw
|
531d569d48
|
Extract IO out of instruct
- Attach fail case only once on main
|
4 years ago |
Raymon Zutekouw
|
d80e6b9490
|
Formatting
|
4 years ago |
Raymon Zutekouw
|
c57a9c2849
|
Parse till operators
|
4 years ago |
Raymon Zutekouw
|
3d60b6cb5d
|
Start with Pest Parser
|
4 years ago |
Raymon Zutekouw
|
269bdf0389
|
Add CLI
- takes input-file, copies to output-file
|
4 years ago |
Raymon Zutekouw
|
eae4045c28
|
Init
|
4 years ago |