123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299typetoken=|NEXT|OR|IDENTof(# 25 "xml-light/xml_parser.mly"string# 8 "xml-light/xml_parser.ml")|PCDATA|STAR|QUESTION|PLUS|OPEN|CLOSE|ENDopenParsinglet_=parse_error;;# 1 "xml-light/xml_parser.mly"(*
* Xml Light, an small Xml parser/printer with DTD support.
* Copyright (C) 2003 Nicolas Cannasse (ncannasse@motion-twin.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library has the special exception on linking described in file
* README.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301 USA
*)# 43 "xml-light/xml_parser.ml"letyytransl_const=[|257(* NEXT *);258(* OR *);260(* PCDATA *);261(* STAR *);262(* QUESTION *);263(* PLUS *);264(* OPEN *);265(* CLOSE *);266(* END *);0|]letyytransl_block=[|259(* IDENT *);0|]letyylhs="\255\255\
\001\000\002\000\002\000\003\000\003\000\003\000\006\000\006\000\
\007\000\007\000\005\000\005\000\008\000\008\000\008\000\008\000\
\004\000\004\000\009\000\009\000\009\000\000\000"letyylen="\002\000\
\002\000\003\000\002\000\003\000\003\000\001\000\003\000\001\000\
\003\000\001\000\002\000\001\000\002\000\002\000\001\000\001\000\
\002\000\001\000\001\000\001\000\001\000\002\000"letyydefred="\000\000\
\000\000\000\000\000\000\000\000\000\000\022\000\000\000\000\000\
\000\000\012\000\019\000\020\000\021\000\013\000\000\000\014\000\
\011\000\001\000\000\000\000\000\000\000\017\000\002\000\000\000\
\004\000\000\000\005\000\000\000\000\000\007\000\009\000"letyydgoto="\002\000\
\006\000\007\000\008\000\014\000\009\000\025\000\027\000\010\000\
\015\000"letyysindex="\002\000\
\020\255\000\000\024\255\024\255\020\255\000\000\254\254\007\255\
\031\255\000\000\000\000\000\000\000\000\000\000\024\255\000\000\
\000\000\000\000\024\255\020\255\020\255\000\000\000\000\021\255\
\000\000\019\255\000\000\020\255\020\255\000\000\000\000"letyyrindex="\000\000\
\000\000\000\000\005\255\018\255\000\000\000\000\000\000\000\000\
\025\255\000\000\000\000\000\000\000\000\000\000\000\255\000\000\
\000\000\000\000\003\255\000\000\000\000\000\000\000\000\026\255\
\000\000\027\255\000\000\000\000\000\000\000\000\000\000"letyygindex="\000\000\
\000\000\032\000\000\000\252\255\253\255\010\000\011\000\000\000\
\000\000"letyytablesize=40letyytable="\016\000\
\018\000\018\000\001\000\003\000\003\000\015\000\015\000\018\000\
\018\000\018\000\022\000\003\000\003\000\015\000\023\000\019\000\
\024\000\026\000\016\000\016\000\029\000\028\000\003\000\004\000\
\024\000\026\000\016\000\005\000\011\000\012\000\013\000\020\000\
\021\000\006\000\008\000\010\000\017\000\030\000\000\000\031\000"letyycheck="\004\000\
\001\001\002\001\001\000\001\001\002\001\001\001\002\001\010\001\
\009\001\010\001\015\000\009\001\010\001\009\001\019\000\009\001\
\020\000\021\000\001\001\002\001\002\001\001\001\003\001\004\001\
\028\000\029\000\009\001\008\001\005\001\006\001\007\001\001\001\
\002\001\009\001\009\001\009\001\005\000\028\000\255\255\029\000"letyynames_const="\
NEXT\000\
OR\000\
PCDATA\000\
STAR\000\
QUESTION\000\
PLUS\000\
OPEN\000\
CLOSE\000\
END\000\
"letyynames_block="\
IDENT\000\
"letyyact=[|(fun_->failwith"parser");(fun__caml_parser_env->let_1=(Parsing.peek_val__caml_parser_env1:'dtd_full_seq)inObj.repr(# 39 "xml-light/xml_parser.mly"(_1)# 134 "xml-light/xml_parser.ml":Types.dtd_child));(fun__caml_parser_env->let_1=(Parsing.peek_val__caml_parser_env2:'dtd_seq)inlet_3=(Parsing.peek_val__caml_parser_env0:'dtd_op)inObj.repr(# 43 "xml-light/xml_parser.mly"(_3_1)# 142 "xml-light/xml_parser.ml":'dtd_full_seq));(fun__caml_parser_env->let_1=(Parsing.peek_val__caml_parser_env1:'dtd_seq)inObj.repr(# 45 "xml-light/xml_parser.mly"(_1)# 149 "xml-light/xml_parser.ml":'dtd_full_seq));(fun__caml_parser_env->let_1=(Parsing.peek_val__caml_parser_env2:'dtd_item)inlet_3=(Parsing.peek_val__caml_parser_env0:'dtd_children)inObj.repr(# 49 "xml-light/xml_parser.mly"(Types.DTDChildren(_1::_3))# 157 "xml-light/xml_parser.ml":'dtd_seq));(fun__caml_parser_env->let_1=(Parsing.peek_val__caml_parser_env2:'dtd_item)inlet_3=(Parsing.peek_val__caml_parser_env0:'dtd_choice)inObj.repr(# 51 "xml-light/xml_parser.mly"(Types.DTDChoice(_1::_3))# 165 "xml-light/xml_parser.ml":'dtd_seq));(fun__caml_parser_env->let_1=(Parsing.peek_val__caml_parser_env0:'dtd_item)inObj.repr(# 53 "xml-light/xml_parser.mly"(_1)# 172 "xml-light/xml_parser.ml":'dtd_seq));(fun__caml_parser_env->let_1=(Parsing.peek_val__caml_parser_env2:'dtd_item)inlet_3=(Parsing.peek_val__caml_parser_env0:'dtd_children)inObj.repr(# 57 "xml-light/xml_parser.mly"(_1::_3)# 180 "xml-light/xml_parser.ml":'dtd_children));(fun__caml_parser_env->let_1=(Parsing.peek_val__caml_parser_env0:'dtd_item)inObj.repr(# 59 "xml-light/xml_parser.mly"([_1])# 187 "xml-light/xml_parser.ml":'dtd_children));(fun__caml_parser_env->let_1=(Parsing.peek_val__caml_parser_env2:'dtd_item)inlet_3=(Parsing.peek_val__caml_parser_env0:'dtd_choice)inObj.repr(# 63 "xml-light/xml_parser.mly"(_1::_3)# 195 "xml-light/xml_parser.ml":'dtd_choice));(fun__caml_parser_env->let_1=(Parsing.peek_val__caml_parser_env0:'dtd_item)inObj.repr(# 65 "xml-light/xml_parser.mly"([_1])# 202 "xml-light/xml_parser.ml":'dtd_choice));(fun__caml_parser_env->let_2=(Parsing.peek_val__caml_parser_env0:'dtd_full_seq)inObj.repr(# 69 "xml-light/xml_parser.mly"(_2)# 209 "xml-light/xml_parser.ml":'dtd_item));(fun__caml_parser_env->let_1=(Parsing.peek_val__caml_parser_env0:'dtd_member)inObj.repr(# 71 "xml-light/xml_parser.mly"(_1)# 216 "xml-light/xml_parser.ml":'dtd_item));(fun__caml_parser_env->let_1=(Parsing.peek_val__caml_parser_env1:string)inlet_2=(Parsing.peek_val__caml_parser_env0:'dtd_op)inObj.repr(# 75 "xml-light/xml_parser.mly"(_2(Types.DTDTag_1))# 224 "xml-light/xml_parser.ml":'dtd_member));(fun__caml_parser_env->let_2=(Parsing.peek_val__caml_parser_env0:'dtd_op)inObj.repr(# 77 "xml-light/xml_parser.mly"(_2Types.DTDPCData)# 231 "xml-light/xml_parser.ml":'dtd_member));(fun__caml_parser_env->let_1=(Parsing.peek_val__caml_parser_env0:string)inObj.repr(# 79 "xml-light/xml_parser.mly"(Types.DTDTag_1)# 238 "xml-light/xml_parser.ml":'dtd_member));(fun__caml_parser_env->Obj.repr(# 81 "xml-light/xml_parser.mly"(Types.DTDPCData)# 244 "xml-light/xml_parser.ml":'dtd_member));(fun__caml_parser_env->let_1=(Parsing.peek_val__caml_parser_env1:'dtd_op_item)inlet_2=(Parsing.peek_val__caml_parser_env0:'dtd_op)inObj.repr(# 85 "xml-light/xml_parser.mly"((funx->_2(_1x)))# 252 "xml-light/xml_parser.ml":'dtd_op));(fun__caml_parser_env->let_1=(Parsing.peek_val__caml_parser_env0:'dtd_op_item)inObj.repr(# 87 "xml-light/xml_parser.mly"(_1)# 259 "xml-light/xml_parser.ml":'dtd_op));(fun__caml_parser_env->Obj.repr(# 91 "xml-light/xml_parser.mly"((funx->Types.DTDZeroOrMorex))# 265 "xml-light/xml_parser.ml":'dtd_op_item));(fun__caml_parser_env->Obj.repr(# 93 "xml-light/xml_parser.mly"((funx->Types.DTDOptionalx))# 271 "xml-light/xml_parser.ml":'dtd_op_item));(fun__caml_parser_env->Obj.repr(# 95 "xml-light/xml_parser.mly"((funx->Types.DTDOneOrMorex))# 277 "xml-light/xml_parser.ml":'dtd_op_item))(* Entry dtd_element *);(fun__caml_parser_env->raise(Parsing.YYexit(Parsing.peek_val__caml_parser_env0)))|]letyytables={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}letdtd_element(lexfun:Lexing.lexbuf->token)(lexbuf:Lexing.lexbuf)=(Parsing.yyparseyytables1lexfunlexbuf:Types.dtd_child)