Commit Graph
17 Commits
Author SHA1 Message Date
raymon 27a7a009c1 Explicitly allow spacing before loopBlockEnd
- Inherited prefixed `spacing*` only applied to loopBlockStart,
- as the rule from statement only allowed spacing before the entire loopBlock
2022-01-01 17:33:35 +01:00
raymon 6b0cb46bf6 Allow most common word separators for variables
- Also includes '?' suffix for bools
2021-12-31 09:24:14 +01:00
raymon 226873e71c Extend numeric operations to constant operations
- Besides decNums and hexNums, characters are also valid
2021-12-30 23:27:30 +01:00
raymon 764b2d17b9 Match all instructions without arguments 2021-12-30 22:47:16 +01:00
raymon ea54bb404d Match all instructions with number argument 2021-12-30 22:46:04 +01:00
raymon 08df04a208 Match all instructions with variable argument 2021-12-30 14:28:08 +01:00
raymon 833e82d5ec Use built-in NEWLINE Rule 2021-12-26 20:41:59 +01:00
raymon 04b82f997d Allow extra newlines between statements 2021-12-26 20:38:31 +01:00
raymon 4f8b28f22d Allow comments on their own line 2021-12-26 20:22:07 +01:00
raymon 8d071dc6df Allow indented statements 2021-12-26 20:22:07 +01:00
raymon 6a82314e54 Allow either spaces or tabs as spacing 2021-12-26 19:47:40 +01:00
raymon 751dfcd5aa Extract newline grammar rule 2021-12-26 19:47:25 +01:00
raymon bc366b7e1d Enforce newlines around body of loopBlock
- The start and end of the loopBlock should be on their own line
2021-12-26 19:42:53 +01:00
raymon a967f0649f Ensure operand is optional: only 0 or 1 2021-12-26 19:31:06 +01:00
raymon 9c60b4d6ac Allow nested loopBlocks
- loopBlocks now contain statements i.o. instructions
2021-12-26 19:23:37 +01:00
raymon 13b29b8bdc Parse till operators 2021-10-20 21:21:02 +02:00
raymon 8bd1224889 Start with Pest Parser 2021-10-19 12:19:08 +02:00