Last active
October 6, 2019 10:40
-
-
Save patricoferris/b96b080b90acd57ab7242301925ced69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* lowercase definition *) | |
let lowercase = ['a'-'z' '_'] | |
(* identchar definition *) | |
let identchar = ['A'-'Z' 'a'-'z' '_' '\'' '0'-'9'] | |
(* Some stuff before *) | |
| lowercase identchar * as name | |
{ try Hashtbl.find keyword_table name | |
with Not_found -> LIDENT name } | |
| lowercase_latin1 identchar_latin1 * as name | |
{ warn_latin1 lexbuf; LIDENT name } | |
(* Some stuff after *) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment