SwiftStudies / OysterKit

OysterKit is a framework that provides a native Swift scanning, lexical analysis, and parsing capabilities. In addition it provides a language that can be used to rapidly define the rules used by OysterKit called STLR
BSD 2-Clause "Simplified" License
178 stars 23 forks source link

OysterKit doesn't parse mix of one an two letters identifiers #103

Open diniska opened 1 month ago

diniska commented 1 month ago

Let's say we want to parse different identifiers composed from two letters.

grammar Example

identifier = "A" | "B" | "Aa" | "Ab" | "Ba" | "Bb"

Then this test

try Example.build("Ab")

throws an error: Interpretation Error: AST construction failed.