Commit Graph

13 Commits (f36f33efde85a47ccbf1a424ef2e856a030b2cfc)

Author SHA1 Message Date
Jack Firth f36f33efde Support quantified repetition 3 years ago
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 5387bd6e2b Add semantic actions for other kinds of objects 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 fa72938368 Derive datum and syntax parsers together 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
Jack Firth 605d943d50 Fix more stuff 3 years ago
Jack Firth 9c6624f19e Rearrange things and implement syntax object builder 3 years ago