Commit Graph

8 Commits (e5d7cab7cbbcce2791cb4d127cf474664c704c58)

Author SHA1 Message Date
Jack Firth e5d7cab7cb Rework the grammar APIs
- Make symbol kind mismatches trigger contract errors in more places.
- Add a notion of "flat" grammars and "normal" grammars, where normal grammars can have recursive expressions for their substitution instead of just a list of symbols.
3 years ago
Jack Firth 60a142f90c Move symbols into their own module too 3 years ago
Jack Firth b2611aee1b Move semantic actions into their own module 3 years ago
Jack Firth ac5370f26a Fix an argument name 3 years ago
Jack Firth 2e53bca272 Unify syntax/datum labels as semantic actions 3 years ago
Jack Firth 31174e67f4 Add support for cuts and splices 3 years ago
Jack Firth 2300abf00c Clarify that grammars are context-free 3 years ago
Jack Firth c65391f703 Add a parser API 3 years ago