Module Keywords.Make
Parameters
Signature
val reserve : string -> unitreserve sreserves the wordsas if it was a keyword, although it will not be defined as one. The exceptionInvalid_argumentis raised if the wordsis already reserved.
val check : string -> unitcheck scallsEarley.give_up ()ifsis a reserved word. It can be used to reject keywords while parsing identifiers for example.
val create : string -> unit Earley.grammarcreate sreserves the keywordsand returns a parser accepting the strings, not followed by a character ofS.id_charset. In the case wheresis already reserved,Invalid_argumentis raised.
val special : string -> unit Earley.grammarspecial saccpets the same input ascreate s, but the wordsis not reserved.