• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / jasengo / 19392761981

15 Nov 2025 04:51PM UTC coverage: 88.679% (+14.0%) from 74.667%
19392761981

Pull #3

github

rm-hull
feat: Add worked example + some needed parser combinators

Introduce several common parser primitives and combinators
essential for building practical parsers.

New primitives in `basic.go`:
*   `Lower`, `Upper`: Match corresponding character types.
*   `Whitespace`: Matches spaces, tabs, newlines.
*   `Return`: Lifts a value into a successful parser result.

New combinators in `combinators.go`:
*   `Token`, `Symb`: Handle tokenizing and symbol matching,
    consuming trailing whitespace automatically.
*   `Left`, `Right`, `Between`: Control result selection in sequence.
*   `Rec`: Enables definition of recursive parsers.
*   `SepBy1`: Parses one or more items separated by a delimiter.

A new test (`TestSearchGrammar`) demonstrates the usage of
these tools to parse complex boolean search expressions.
Pull Request #3: feat: Add worked example + some needed parser combinators

32 of 40 new or added lines in 2 files covered. (80.0%)

235 of 265 relevant lines covered (88.68%)

1.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

86.3
/parser/combinators.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc