Sourceval __sedlex_table_20 : string Sourceval __sedlex_table_25 : string Sourceval __sedlex_table_48 : string Sourceval __sedlex_table_18 : string Sourceval __sedlex_table_1 : string Sourceval __sedlex_table_2 : string Sourceval __sedlex_table_3 : string Sourceval __sedlex_table_4 : string Sourceval __sedlex_table_5 : string Sourceval __sedlex_table_6 : string Sourceval __sedlex_table_7 : string Sourceval __sedlex_table_8 : string Sourceval __sedlex_table_9 : string Sourceval __sedlex_table_10 : string Sourceval __sedlex_table_11 : string Sourceval __sedlex_table_12 : string Sourceval __sedlex_table_13 : string Sourceval __sedlex_table_15 : string Sourceval __sedlex_table_16 : string Sourceval __sedlex_table_17 : string Sourceval __sedlex_table_19 : string Sourceval __sedlex_table_22 : string Sourceval __sedlex_table_23 : string Sourceval __sedlex_table_24 : string Sourceval __sedlex_table_26 : string Sourceval __sedlex_table_27 : string Sourceval __sedlex_table_29 : string Sourceval __sedlex_table_30 : string Sourceval __sedlex_table_31 : string Sourceval __sedlex_table_32 : string Sourceval __sedlex_table_34 : string Sourceval __sedlex_table_35 : string Sourceval __sedlex_table_36 : string Sourceval __sedlex_table_37 : string Sourceval __sedlex_table_38 : string Sourceval __sedlex_table_39 : string Sourceval __sedlex_table_41 : string Sourceval __sedlex_table_42 : string Sourceval __sedlex_table_43 : string Sourceval __sedlex_table_44 : string Sourceval __sedlex_table_45 : string Sourceval __sedlex_table_46 : string Sourceval __sedlex_table_47 : string Sourceval __sedlex_table_49 : string Sourceval __sedlex_table_50 : string Sourceval __sedlex_table_51 : string Sourceval __sedlex_table_52 : string Sourceval __sedlex_table_53 : string Sourceval __sedlex_table_54 : string Sourceval __sedlex_table_55 : string Sourceval __sedlex_table_56 : string Sourceval __sedlex_table_58 : string Sourceval __sedlex_table_60 : string Sourceval __sedlex_table_61 : string Sourceval __sedlex_table_62 : string Sourceval __sedlex_table_63 : string Sourceval __sedlex_table_64 : string Sourceval __sedlex_table_65 : string Sourceval __sedlex_table_66 : string Sourceval __sedlex_table_33 : string Sourceval __sedlex_table_57 : string Sourceval __sedlex_table_14 : string Sourceval __sedlex_table_40 : string Sourceval __sedlex_table_21 : string Sourceval __sedlex_table_28 : string Sourceval __sedlex_table_59 : string Sourceval __sedlex_partition_47 : int -> int Sourceval __sedlex_partition_57 : int -> int Sourceval __sedlex_partition_20 : int -> int Sourceval __sedlex_partition_25 : int -> int Sourceval __sedlex_partition_41 : int -> int Sourceval __sedlex_partition_42 : int -> int Sourceval __sedlex_partition_8 : int -> int Sourceval __sedlex_partition_66 : int -> int Sourceval __sedlex_partition_21 : int -> int Sourceval __sedlex_partition_38 : int -> int Sourceval __sedlex_partition_56 : int -> int Sourceval __sedlex_partition_64 : int -> int Sourceval __sedlex_partition_16 : int -> int Sourceval __sedlex_partition_28 : int -> int Sourceval __sedlex_partition_49 : int -> int Sourceval __sedlex_partition_10 : int -> int Sourceval __sedlex_partition_12 : int -> int Sourceval __sedlex_partition_17 : int -> int Sourceval __sedlex_partition_51 : int -> int Sourceval __sedlex_partition_67 : int -> int Sourceval __sedlex_partition_4 : int -> int Sourceval __sedlex_partition_32 : int -> int Sourceval __sedlex_partition_15 : int -> int Sourceval __sedlex_partition_19 : int -> int Sourceval __sedlex_partition_43 : int -> int Sourceval __sedlex_partition_33 : int -> int Sourceval __sedlex_partition_26 : int -> int Sourceval __sedlex_partition_70 : int -> int Sourceval __sedlex_partition_48 : int -> int Sourceval __sedlex_partition_65 : int -> int Sourceval __sedlex_partition_7 : int -> int Sourceval __sedlex_partition_53 : int -> int Sourceval __sedlex_partition_63 : int -> int Sourceval __sedlex_partition_61 : int -> int Sourceval __sedlex_partition_54 : int -> int Sourceval __sedlex_partition_14 : int -> int Sourceval __sedlex_partition_52 : int -> int Sourceval __sedlex_partition_39 : int -> int Sourceval __sedlex_partition_9 : int -> int Sourceval __sedlex_partition_23 : int -> int Sourceval __sedlex_partition_24 : int -> int Sourceval __sedlex_partition_40 : int -> int Sourceval __sedlex_partition_2 : int -> int Sourceval __sedlex_partition_44 : int -> int Sourceval __sedlex_partition_50 : int -> int Sourceval __sedlex_partition_60 : int -> int Sourceval __sedlex_partition_3 : int -> int Sourceval __sedlex_partition_31 : int -> int Sourceval __sedlex_partition_37 : int -> int Sourceval __sedlex_partition_46 : int -> int Sourceval __sedlex_partition_69 : int -> int Sourceval __sedlex_partition_13 : int -> int Sourceval __sedlex_partition_1 : int -> int Sourceval __sedlex_partition_36 : int -> int Sourceval __sedlex_partition_58 : int -> int Sourceval __sedlex_partition_62 : int -> int Sourceval __sedlex_partition_27 : int -> int Sourceval __sedlex_partition_34 : int -> int Sourceval __sedlex_partition_45 : int -> int Sourceval __sedlex_partition_55 : int -> int Sourceval __sedlex_partition_11 : int -> int Sourceval __sedlex_partition_18 : int -> int Sourceval __sedlex_partition_6 : int -> int Sourceval __sedlex_partition_59 : int -> int Sourceval __sedlex_partition_68 : int -> int Sourceval __sedlex_partition_72 : int -> int Sourceval __sedlex_partition_22 : int -> int Sourceval __sedlex_partition_30 : int -> int Sourceval __sedlex_partition_35 : int -> int Sourceval __sedlex_partition_71 : int -> int Sourceval __sedlex_partition_29 : int -> int Sourceval __sedlex_partition_5 : int -> int Lexer for Lambdapi syntax, using Sedlex, a Utf8 lexer generator.
Sourcetype token = | EOF| ABORT| ADMIT| ADMITTED| APPLY| AS| ASSERT of bool| ASSOCIATIVE| ASSUME| BEGIN| BUILTIN| COMMUTATIVE| COMPUTE| CONSTANT| DEBUG| END| FAIL| FLAG| GENERALIZE| HAVE| IN| INDUCTION| INDUCTIVE| INFIX| INJECTIVE| LET| NOTATION| OPAQUE| OPEN| POSTFIX| PREFIX| PRINT| PRIVATE| PROOFTERM| PROTECTED| PROVER| PROVER_TIMEOUT| QUANTIFIER| REFINE| REFLEXIVITY| REQUIRE| REWRITE| RULE| SEQUENTIAL| SIMPLIFY| SOLVE| SYMBOL| SYMMETRY| TYPE_QUERY| TYPE_TERM| UNIF_RULE| VERBOSE| WHY3| WITH| DEBUG_FLAGS of bool * string| NAT of string| FLOAT of float| SIDE of Pratter.associativity| STRINGLIT of string| SWITCH of bool| ARROW| ASSIGN| BACKQUOTE| COMMA| COLON| DOT| EQUIV| HOOK_ARROW| LAMBDA| L_CU_BRACKET| L_PAREN| L_SQ_BRACKET| PI| R_CU_BRACKET| R_PAREN| R_SQ_BRACKET| SEMICOLON| TURNSTILE| UNDERSCORE| VBAR| UID of string| UID_EXPL of string| UID_META of int| UID_PATT of string| QID of Common.Path.t| QID_EXPL of Common.Path.t
Identifiers.
There are two kinds of identifiers: regular identifiers and escaped identifiers of the form "{|...|}".
Modulo those surrounding brackets, escaped identifiers allow to use as identifiers keywords or filenames that are not regular identifiers.
An escaped identifier denoting a filename or directory is unescaped before accessing to it. Hence, the module "{|a b|}" refers to the file "a b".
Identifiers need to be normalized so that an escaped identifier, once unescaped, is not regular. To this end, every identifier of the form "{|s|}" with s regular, is understood as "s" (function remove_useless_escape below).
Finally, identifiers must not be empty, so that we can use the empty string for the path of ghost signatures.
Sourceval is_regid : string -> bool Sourceval escape : string -> string escape s converts a string s into an escaped identifier if it is not regular. We do not check whether s contains "|}". FIXME?
Sourceval remove_useless_escape : string -> string remove_useless_escape s replaces escaped regular identifiers by their unescape form.