erick-alcachofa 5ba801a756
feat: Add file parsing entry point and refine grammar rules
Signed-off-by: erick-alcachofa <erick@artichoke.dev>

- Updated `main.cpp` to read source files and invoke the parser using
  `MatcherRule<rules::Program>`, providing clear error output or success
  indication.
- Replaced `peek` with `peekExpect` in `Parser` to ensure expected token
  types.
- Replaced parentheses with curly braces for struct and enum definitions
  as specified on grammar.
- Fixed `StructMembers` and `EnumMembers` to allow zero or more entries
  as specified on grammar.
- Replaced `MatcherNoneOrOnce` with `MatcherNoneOrMore` in expression
  rules to support chained binary expressions as specified on grammar.
- Reorganized `PrimaryTypeExpression` to include all valid expression
  types, and reordered rules for better match accuracy.
- Fixed `TypesListR` to correctly refer to `Type` instead of
  `TypesListR` in its recursive rule.

These changes fixes language grammar coverage, fix structural parsing
bugs, and enable full file parsing from the frontend.
2025-10-05 22:55:49 -06:00
..