https://github.com/andresaraujo/bantam_parser
https://github.com/andresaraujo/bantam_parser
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/andresaraujo/bantam_parser
- Owner: andresaraujo
- Created: 2022-09-01T16:52:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-06T03:47:36.000Z (almost 2 years ago)
- Last Synced: 2025-01-19T01:40:54.882Z (3 months ago)
- Language: Dart
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
This a dart implementation of [Bantam](https://journal.stuffwithstuff.com/2011/03/19/pratt-parsers-expression-parsing-made-easy/)
This was my attempt of learning how Pratt parsers work, as well as playing around with
having an on demand scanner hooked up to the parser.Some differences from the original:
- It supports more tokens than the original, like `#` for comments and literals.
- Scanner and parser consume tokens on demand, instead of all at once.