# 0 "lexer_script.mll" open Parser_cocci_menhir module D = Data module Ast = Ast_cocci exception Lexical of string let tok = Lexing.lexeme let inc_line _ = Lexer_cocci.line := !Lexer_cocci.line + 1 # 11 "lexer_script.ml" let __ocaml_lex_tables = { Lexing.lex_base = "\000\000\247\255\248\255\249\255\001\000\001\000\254\255\004\000\ \253\255\008\000\001\000\254\255\255\255\002\000\254\255\255\255\ "; Lexing.lex_backtrk = "\255\255\255\255\255\255\255\255\004\000\003\000\255\255\000\000\ \255\255\005\000\255\255\255\255\255\255\255\255\255\255\255\255\ "; Lexing.lex_default = "\007\000\000\000\000\000\000\000\255\255\255\255\000\000\007\000\ \000\000\009\000\011\000\000\000\000\000\014\000\000\000\000\000\ "; Lexing.lex_trans = "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\006\000\006\000\006\000\006\000\255\255\255\255\ \255\255\255\255\255\255\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\003\000\012\000\000\000\000\000\255\255\002\000\ \000\000\015\000\000\000\255\255\000\000\000\000\000\000\004\000\ \009\000\000\000\000\000\255\255\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \005\000\008\000\000\000\000\000\255\255\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\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\255\255\255\255\000\000\255\255\000\000\000\000\000\000\ \255\255"; Lexing.lex_check = "\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\000\000\000\000\000\000\000\000\007\000\007\000\ \007\000\007\000\009\000\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\000\000\010\000\255\255\255\255\007\000\000\000\ \255\255\013\000\255\255\007\000\255\255\255\255\255\255\000\000\ \004\000\255\255\255\255\007\000\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \000\000\005\000\255\255\255\255\007\000\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \000\000\010\000\013\000\255\255\007\000\255\255\255\255\255\255\ \009\000"; Lexing.lex_base_code = ""; Lexing.lex_backtrk_code = ""; Lexing.lex_default_code = ""; Lexing.lex_trans_code = ""; Lexing.lex_check_code = ""; Lexing.lex_code = ""; } let rec token lexbuf = __ocaml_lex_token_rec lexbuf 0 and __ocaml_lex_token_rec lexbuf __ocaml_lex_state = match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with | 0 -> # 17 "lexer_script.mll" ( TScriptData (tok lexbuf) ) # 116 "lexer_script.ml" | 1 -> # 18 "lexer_script.mll" ( inc_line(); TScriptData (tok lexbuf) ) # 121 "lexer_script.ml" | 2 -> # 19 "lexer_script.mll" ( TArobArob ) # 126 "lexer_script.ml" | 3 -> # 20 "lexer_script.mll" ( TArob ) # 131 "lexer_script.ml" | 4 -> # 21 "lexer_script.mll" ( TScriptData (tok lexbuf) ) # 136 "lexer_script.ml" | 5 -> # 22 "lexer_script.mll" ( token lexbuf ) # 141 "lexer_script.ml" | 6 -> # 23 "lexer_script.mll" ( TScriptData (Printf.sprintf "\"%s\"" (string lexbuf)) ) # 146 "lexer_script.ml" | 7 -> # 24 "lexer_script.mll" ( TScriptData (Printf.sprintf "'%s'" (cstring lexbuf)) ) # 151 "lexer_script.ml" | 8 -> # 25 "lexer_script.mll" ( EOF ) # 156 "lexer_script.ml" | 9 -> # 26 "lexer_script.mll" ( raise (Lexical ("unrecognised symbol, in token rule:"^tok lexbuf)) ) # 161 "lexer_script.ml" | __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf; __ocaml_lex_token_rec lexbuf __ocaml_lex_state and string lexbuf = __ocaml_lex_string_rec lexbuf 10 and __ocaml_lex_string_rec lexbuf __ocaml_lex_state = match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with | 0 -> # 30 "lexer_script.mll" ( "" ) # 172 "lexer_script.ml" | 1 -> let # 31 "lexer_script.mll" x # 178 "lexer_script.ml" = Lexing.sub_lexeme_char lexbuf lexbuf.Lexing.lex_start_pos in # 31 "lexer_script.mll" ( (String.make 1 x) ^ string lexbuf ) # 182 "lexer_script.ml" | __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf; __ocaml_lex_string_rec lexbuf __ocaml_lex_state and cstring lexbuf = __ocaml_lex_cstring_rec lexbuf 13 and __ocaml_lex_cstring_rec lexbuf __ocaml_lex_state = match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with | 0 -> # 34 "lexer_script.mll" ( "" ) # 193 "lexer_script.ml" | 1 -> let # 35 "lexer_script.mll" x # 199 "lexer_script.ml" = Lexing.sub_lexeme_char lexbuf lexbuf.Lexing.lex_start_pos in # 35 "lexer_script.mll" ( (String.make 1 x) ^ cstring lexbuf ) # 203 "lexer_script.ml" | __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf; __ocaml_lex_cstring_rec lexbuf __ocaml_lex_state ;;