Carthage / ogdl-swift

An OGDL parser, written in Swift (experimental)
MIT License
18 stars 9 forks source link

Move alternation with default trees into Madness #5

Open robrix opened 9 years ago

robrix commented 9 years ago
x | const([])

If x is unmatched, then the parse tree passed to const becomes available as a match. (In general, the rhs is String -> T.)