Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
parser.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242
type token = | IDENT of ( # 1 "lib/parser.mly" string # 6 "lib/parser.ml" ) | UNION | CONCAT | STAR | EMPTY | EPSILON | LPAR | RPAR | EOF | BADTOK open Parsing let _ = parse_error;; let yytransl_const = [| 258 (* UNION *); 259 (* CONCAT *); 260 (* STAR *); 261 (* EMPTY *); 262 (* EPSILON *); 263 (* LPAR *); 264 (* RPAR *); 0 (* EOF *); 265 (* BADTOK *); 0|] let yytransl_block = [| 257 (* IDENT *); 0|] let yylhs = "\255\255\ \001\000\002\000\002\000\002\000\002\000\002\000\002\000\002\000\ \002\000\000\000" let yylen = "\002\000\ \002\000\001\000\001\000\001\000\003\000\003\000\003\000\002\000\ \002\000\002\000" let yydefred = "\000\000\ \000\000\000\000\002\000\004\000\003\000\000\000\010\000\000\000\ \000\000\000\000\000\000\009\000\001\000\000\000\005\000\000\000\ \000\000" let yydgoto = "\002\000\ \007\000\014\000" let yysindex = "\255\255\ \003\255\000\000\000\000\000\000\000\000\003\255\000\000\013\000\ \017\255\003\255\003\255\000\000\000\000\032\255\000\000\025\255\ \032\255" let yyrindex = "\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\001\000\000\000\005\000\ \003\000" let yygindex = "\000\000\ \000\000\006\000" let yytablesize = 276 let yytable = "\001\000\ \008\000\000\000\007\000\003\000\006\000\000\000\008\000\004\000\ \005\000\006\000\000\000\009\000\013\000\000\000\000\000\016\000\ \017\000\003\000\010\000\011\000\012\000\004\000\005\000\006\000\ \015\000\003\000\000\000\011\000\012\000\004\000\005\000\006\000\ \003\000\000\000\000\000\012\000\004\000\005\000\006\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\008\000\008\000\007\000\007\000\006\000\000\000\ \008\000\000\000\007\000\000\000\006\000\003\000\010\000\011\000\ \012\000\004\000\005\000\006\000" let yycheck = "\001\000\ \000\000\255\255\000\000\001\001\000\000\255\255\001\000\005\001\ \006\001\007\001\255\255\006\000\000\000\255\255\255\255\010\000\ \011\000\001\001\002\001\003\001\004\001\005\001\006\001\007\001\ \008\001\001\001\255\255\003\001\004\001\005\001\006\001\007\001\ \001\001\255\255\255\255\004\001\005\001\006\001\007\001\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\002\001\003\001\002\001\003\001\002\001\255\255\ \008\001\255\255\008\001\255\255\008\001\001\001\002\001\003\001\ \004\001\005\001\006\001\007\001" let yynames_const = "\ UNION\000\ CONCAT\000\ STAR\000\ EMPTY\000\ EPSILON\000\ LPAR\000\ RPAR\000\ EOF\000\ BADTOK\000\ " let yynames_block = "\ IDENT\000\ " let yyact = [| (fun _ -> failwith "parser") ; (fun __caml_parser_env -> let _1 = (Parsing.peek_val __caml_parser_env 1 : 're) in Obj.repr( # 20 "lib/parser.mly" ( _1 ) # 163 "lib/parser.ml" : Tree.re)) ; (fun __caml_parser_env -> let _1 = (Parsing.peek_val __caml_parser_env 0 : string) in Obj.repr( # 23 "lib/parser.mly" ( Literal _1 ) # 170 "lib/parser.ml" : 're)) ; (fun __caml_parser_env -> Obj.repr( # 24 "lib/parser.mly" ( Epsilon ) # 176 "lib/parser.ml" : 're)) ; (fun __caml_parser_env -> Obj.repr( # 25 "lib/parser.mly" ( Empty ) # 182 "lib/parser.ml" : 're)) ; (fun __caml_parser_env -> let _2 = (Parsing.peek_val __caml_parser_env 1 : 're) in Obj.repr( # 26 "lib/parser.mly" ( _2 ) # 189 "lib/parser.ml" : 're)) ; (fun __caml_parser_env -> let _1 = (Parsing.peek_val __caml_parser_env 2 : 're) in let _3 = (Parsing.peek_val __caml_parser_env 0 : 're) in Obj.repr( # 27 "lib/parser.mly" ( Union (_1, _3) ) # 197 "lib/parser.ml" : 're)) ; (fun __caml_parser_env -> let _1 = (Parsing.peek_val __caml_parser_env 2 : 're) in let _3 = (Parsing.peek_val __caml_parser_env 0 : 're) in Obj.repr( # 28 "lib/parser.mly" ( Concat (_1, _3) ) # 205 "lib/parser.ml" : 're)) ; (fun __caml_parser_env -> let _1 = (Parsing.peek_val __caml_parser_env 1 : 're) in let _2 = (Parsing.peek_val __caml_parser_env 0 : 're) in Obj.repr( # 29 "lib/parser.mly" ( Concat (_1, _2) ) # 213 "lib/parser.ml" : 're)) ; (fun __caml_parser_env -> let _1 = (Parsing.peek_val __caml_parser_env 1 : 're) in Obj.repr( # 30 "lib/parser.mly" ( Star _1 ) # 220 "lib/parser.ml" : 're)) (* Entry regex *) ; (fun __caml_parser_env -> raise (Parsing.YYexit (Parsing.peek_val __caml_parser_env 0))) |] let yytables = { Parsing.actions=yyact; Parsing.transl_const=yytransl_const; Parsing.transl_block=yytransl_block; Parsing.lhs=yylhs; Parsing.len=yylen; Parsing.defred=yydefred; Parsing.dgoto=yydgoto; Parsing.sindex=yysindex; Parsing.rindex=yyrindex; Parsing.gindex=yygindex; Parsing.tablesize=yytablesize; Parsing.table=yytable; Parsing.check=yycheck; Parsing.error_function=parse_error; Parsing.names_const=yynames_const; Parsing.names_block=yynames_block } let regex (lexfun : Lexing.lexbuf -> token) (lexbuf : Lexing.lexbuf) = (Parsing.yyparse yytables 1 lexfun lexbuf : Tree.re)