v0.3.0 #1

Merged
j merged 12 commits from v0.3.0 into main 2024-02-01 20:11:02 +00:00

12 Commits

Author SHA1 Message Date
e8fbae9837 Update copyright header 2024-02-01 12:37:59 -06:00
618200dc42 msp430-asm: Make UI a little bet prettier 2024-02-01 12:00:55 -06:00
f6c1914720 cargo doc: Fix linking errors in doc comments 2024-02-01 12:00:01 -06:00
a63a4b7ece util: Only contains Span, so rename module to span.rs 2024-02-01 11:59:21 -06:00
11bae9b348 Unit tests: Add more lexer tests, add parser tests 2024-01-31 17:59:55 -06:00
860c9d4a97 parser: Refactor Parsable to align with assembler::Assemble 2024-01-31 17:59:31 -06:00
af89541af1 lexer: Fix copy+paste error in greater. Now emits Rsh tokens~! 2024-01-31 17:58:26 -06:00
6b5663ae4e msp430-asm: Remove ANES as a dependency
- ANSI escape codes are stupid simple, and really don't warrant an external dependency
2024-01-31 13:48:16 -06:00
5a77985b39 lexer: Fix bug that did not check the second character of identifiers. This also fixes one-character identifiers not being properly detected. 2024-01-31 13:47:18 -06:00
b31295ad21 Add one of my old Microcorruption solutions as an example
- TODO: allow embedding unicode characters as numerics in expressions
2024-01-30 05:40:49 -06:00
22ade3750e grammar.ebnf: Commit incomplete grammar description 2024-01-30 05:29:25 -06:00
fc8f8b9622 v0.3.0: Total overhaul
- Everything has been rewritten
- Modularity is improved somewhat
  - No dependency injection in preprocessor/parser, though
- There are now early and late constant evaluation engines
  - This engine allows for by-value access to already-assembled code
  - Performs basic math operations, remainder, bitwise logic, bit shifts, negation, and bit inversion
  - Also allows for indexing into already-generated code using pointer-arithmetic syntax: `*(&main + 10)`. This is subject to change? It's clunky, and only allows word-aligned access. However, this rewrite is taking far too long, so I'll call the bikeshedding here.
  - Pretty sure this constant evaluation is computationally equivalent to Deadfish?
2024-01-30 05:27:12 -06:00