We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It generates code that doesn't compile:
grammar Example offOrOn = ("0" | "1")+
generates:
public struct Example: Codable { public let offOrOn : OffOrOn ... }
It generates the structure that won't be able to represent the parsed string:
grammar Example off = "0" on = "1" mix = (off | on)+
result:
public struct Example: Codable { // Mix public enum Mix: Codable { case on(on:[Swift.String]) case off(off:[Swift.String]) } ... }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
First example
It generates code that doesn't compile:
generates:
Second example
It generates the structure that won't be able to represent the parsed string:
result:
The text was updated successfully, but these errors were encountered: