Skip to content

Instantly share code, notes, and snippets.

@PollRobots
Created January 20, 2013 21:42
Show Gist options
  • Select an option

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

Select an option

Save PollRobots/4581969 to your computer and use it in GitHub Desktop.
type GrammarRule<'a>(prod:Expression, func:(string -> ParseResult<'a> -> ParseResult<'a>)) =
member this.Prod = prod
member this.Func = func
let parseExpression (grammar:Map<string,GrammarRule<'a>>) start (input:string) =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment