Raymon Zutekouw
|
53c5b66222
|
Implement loopBlock
|
4 years ago |
Raymon Zutekouw
|
f944a28357
|
Implement print
|
4 years ago |
Raymon Zutekouw
|
adc77acc42
|
Implement getchr
|
4 years ago |
Raymon Zutekouw
|
4fd1497e7b
|
Implement setz
|
4 years ago |
Raymon Zutekouw
|
cbeed38a5b
|
Implement basic add and sub
|
4 years ago |
Raymon Zutekouw
|
756e21e7fd
|
Remove field is_allocated from MemCell
|
4 years ago |
Raymon Zutekouw
|
bb63782711
|
Implement pointm
|
4 years ago |
Raymon Zutekouw
|
0ac4731f8a
|
Implement point
|
4 years ago |
Raymon Zutekouw
|
1673690956
|
Implement delvar
|
4 years ago |
Raymon Zutekouw
|
189a57f884
|
Panic on duplicate variable creation
|
4 years ago |
Raymon Zutekouw
|
df38c66d83
|
Implement var
|
4 years ago |
Raymon Zutekouw
|
5e2497b2ad
|
Fill-in struct fields
|
4 years ago |
Raymon Zutekouw
|
e712f40738
|
Pass state to instruct
state will store:
- variable positions
|
4 years ago |
Raymon Zutekouw
|
2ac2306b95
|
Allow newlines between comments and statements
|
4 years ago |
Raymon Zutekouw
|
9cad628caf
|
Cleanup grammar file
- Formatting
- Remove generic `operator` and `operand`
- used for testing
|
4 years ago |
Raymon Zutekouw
|
0a03cfa416
|
Match macro #include
|
4 years ago |
Raymon Zutekouw
|
c868b5f052
|
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
|
53d712db4f
|
Allow most common word separators for variables
- Also includes '?' suffix for bools
|
4 years ago |
Raymon Zutekouw
|
d0805b55a7
|
Correct example.mblf with no-arg print
|
4 years ago |
Raymon Zutekouw
|
42c45c3835
|
Extend numeric operations to constant operations
- Besides decNums and hexNums, characters are also valid
|
4 years ago |
Raymon Zutekouw
|
5c450b2c6a
|
Match all instructions without arguments
|
4 years ago |
Raymon Zutekouw
|
c56770d604
|
Match all instructions with number argument
|
4 years ago |
Raymon Zutekouw
|
29ed49b554
|
Print other Rules to stdout
- Entire parsed file in readable form to stdout
|
4 years ago |
Raymon Zutekouw
|
974c6b8021
|
Match all instructions with variable argument
|
4 years ago |
Raymon Zutekouw
|
e3883f2ae2
|
Use built-in NEWLINE Rule
|
4 years ago |
Raymon Zutekouw
|
02b392d96e
|
Allow extra newlines between statements
|
4 years ago |
Raymon Zutekouw
|
629580e628
|
Allow comments on their own line
|
4 years ago |
Raymon Zutekouw
|
a381e148f0
|
Allow indented statements
|
4 years ago |
Raymon Zutekouw
|
298513eb7f
|
Allow either spaces or tabs as spacing
|
4 years ago |
Raymon Zutekouw
|
6eb61ad83d
|
Extract newline grammar rule
|
4 years ago |
Raymon Zutekouw
|
91a4c8c0b8
|
Enforce newlines around body of loopBlock
- The start and end of the loopBlock should be on their own line
|
4 years ago |
Raymon Zutekouw
|
bc99a9d96b
|
Ensure operand is optional: only 0 or 1
|
4 years ago |
Raymon Zutekouw
|
9fbf521174
|
Allow nested loopBlocks
- loopBlocks now contain statements i.o. instructions
|
4 years ago |
Raymon Zutekouw
|
6804d2aac3
|
Extract IO out of instruct
- Attach fail case only once on main
|
4 years ago |
Raymon Zutekouw
|
d0d82f1831
|
Formatting
|
4 years ago |
Raymon Zutekouw
|
e20cfcbb4a
|
Parse till operators
|
4 years ago |
Raymon Zutekouw
|
0a157cf02e
|
Start with Pest Parser
|
4 years ago |
Raymon Zutekouw
|
389364a2dc
|
Add CLI
- takes input-file, copies to output-file
|
4 years ago |
Raymon Zutekouw
|
805c7f5dd2
|
Init
|
4 years ago |