Skip to content

Instantly share code, notes, and snippets.

@PollRobots
Created February 1, 2013 06:36
Show Gist options
  • Select an option

  • Save PollRobots/4689760 to your computer and use it in GitHub Desktop.

Select an option

Save PollRobots/4689760 to your computer and use it in GitHub Desktop.
type Expression =
| Terminal of string
| TerminalOneOf of string
| TerminalUnicode of UnicodeCategory
| TerminalWildcard
| NonTerminal of string
| Epsilon
| Sequence of Expression list
| Choice of Expression list
| ZeroOrMore of Expression
| OneOrMore of Expression
| Optional of Expression
| And of Expression
| Not of Expression
| Rule of string * Expression * string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment