Skip to content

Instantly share code, notes, and snippets.

@PollRobots
Created February 1, 2013 08:03
Show Gist options
  • Save PollRobots/4690040 to your computer and use it in GitHub Desktop.
Save PollRobots/4690040 to your computer and use it in GitHub Desktop.
let codeGenRule b i first = function
| Rule _ as x ->
ibprintf b i "%s " <| if first then "let rec" else "and"
codeGen b i x
| x -> failwithf "Cannot generate code for %A" x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment