rgbds icon indicating copy to clipboard operation
rgbds copied to clipboard

Annotate (comment) `parser.y` and structure it better

Open ISSOtm opened this issue 4 years ago • 0 comments

src/asm/parser.y is currently very messy, lacking organization and comments. Bison documentation is clear: both /* ... */ and // are supported.

  • [ ] Organize rules better, possibly with "section markers" (// ------------- Numeric expressions ------------- for example)
  • [ ] Add comments explaining the purpose of rules when relevant, especially when parser conflicts are involved (consider relocexpr_no_str, notably)

ISSOtm avatar May 01 '21 09:05 ISSOtm