Skip to content

Instantly share code, notes, and snippets.

@cdleary
Created May 19, 2012 18:14
Show Gist options
  • Save cdleary/2731803 to your computer and use it in GitHub Desktop.
Save cdleary/2731803 to your computer and use it in GitHub Desktop.
let text_token = scan "1234" 0 in
match text_token with
| {pos_start=0; pos_end=4; token=Integer 1234} -> print_endline "Pass"
| _ -> print_endline "Fail"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment