Skip to content

Instantly share code, notes, and snippets.

@SteveGilham
Created April 26, 2015 14:17
Show Gist options
  • Save SteveGilham/6941f00187d12e0eba43 to your computer and use it in GitHub Desktop.
Save SteveGilham/6941f00187d12e0eba43 to your computer and use it in GitHub Desktop.
Continuation based lexeme consumer
let lexPutLexeme s lexeme (k: continuation) =
let storeLexeme () =
s.output lexeme;
execute k
K storeLexeme;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment