
module MenhirBasics = struct
  
  exception Error
  
  let _eRR =
    fun _s ->
      raise Error
  
  type token = 
    | String_ of (
# 45 "lib/ttl_parser.mly"
       (string)
# 15 "lib/ttl_parser.ml"
  )
    | SEMICOLON
    | RIGHT_PAR
    | RIGHT_BRACKET
    | Qname_ of (
# 43 "lib/ttl_parser.mly"
       (string option * string option)
# 23 "lib/ttl_parser.ml"
  )
    | PREFIX
    | LEFT_PAR
    | LEFT_BRACKET
    | Iriref_ of (
# 40 "lib/ttl_parser.mly"
       (string)
# 31 "lib/ttl_parser.ml"
  )
    | Integer of (
# 46 "lib/ttl_parser.mly"
       (string)
# 36 "lib/ttl_parser.ml"
  )
    | Identifier of (
# 41 "lib/ttl_parser.mly"
       (string)
# 41 "lib/ttl_parser.ml"
  )
    | HATHAT
    | EOF
    | Double of (
# 48 "lib/ttl_parser.mly"
       (string)
# 48 "lib/ttl_parser.ml"
  )
    | Decimal of (
# 47 "lib/ttl_parser.mly"
       (string)
# 53 "lib/ttl_parser.ml"
  )
    | DOT
    | COMMA
    | Boolean of (
# 49 "lib/ttl_parser.mly"
       (string)
# 60 "lib/ttl_parser.ml"
  )
    | Bname of (
# 44 "lib/ttl_parser.mly"
       (string)
# 65 "lib/ttl_parser.ml"
  )
    | BASE
    | At_identifier of (
# 42 "lib/ttl_parser.mly"
       (string)
# 71 "lib/ttl_parser.ml"
  )
    | AT_PREFIX
    | AT_BASE
    | ANON
    | A
  
end

include MenhirBasics

# 27 "lib/ttl_parser.mly"
  
open Ttl_types


# 87 "lib/ttl_parser.ml"

type ('s, 'r) _menhir_state = 
  | MenhirState00 : ('s, _menhir_box_main) _menhir_state
    (** State 00.
        Stack shape : .
        Start symbol: main. *)

  | MenhirState03 : (('s, _menhir_box_main) _menhir_cell1_PREFIX _menhir_cell0_Identifier, _menhir_box_main) _menhir_state
    (** State 03.
        Stack shape : PREFIX Identifier.
        Start symbol: main. *)

  | MenhirState06 : (('s, _menhir_box_main) _menhir_cell1_LEFT_PAR, _menhir_box_main) _menhir_state
    (** State 06.
        Stack shape : LEFT_PAR.
        Start symbol: main. *)

  | MenhirState07 : (('s, 'r) _menhir_cell1_String_, 'r) _menhir_state
    (** State 07.
        Stack shape : String_.
        Start symbol: <undetermined>. *)

  | MenhirState08 : (('s, 'r) _menhir_cell1_HATHAT, 'r) _menhir_state
    (** State 08.
        Stack shape : HATHAT.
        Start symbol: <undetermined>. *)

  | MenhirState15 : ((('s, 'r) _menhir_cell1_String_, 'r) _menhir_cell1_at_identifier, 'r) _menhir_state
    (** State 15.
        Stack shape : String_ at_identifier.
        Start symbol: <undetermined>. *)

  | MenhirState17 : (('s, _menhir_box_main) _menhir_cell1_LEFT_BRACKET, _menhir_box_main) _menhir_state
    (** State 17.
        Stack shape : LEFT_BRACKET.
        Start symbol: main. *)

  | MenhirState19 : (('s, _menhir_box_main) _menhir_cell1_verb, _menhir_box_main) _menhir_state
    (** State 19.
        Stack shape : verb.
        Start symbol: main. *)

  | MenhirState28 : (('s, _menhir_box_main) _menhir_cell1_object_, _menhir_box_main) _menhir_state
    (** State 28.
        Stack shape : object_.
        Start symbol: main. *)

  | MenhirState37 : (('s, _menhir_box_main) _menhir_cell1_predobj, _menhir_box_main) _menhir_state
    (** State 37.
        Stack shape : predobj.
        Start symbol: main. *)

  | MenhirState38 : (('s, _menhir_box_main) _menhir_cell1_SEMICOLON, _menhir_box_main) _menhir_state
    (** State 38.
        Stack shape : SEMICOLON.
        Start symbol: main. *)

  | MenhirState41 : ((('s, _menhir_box_main) _menhir_cell1_predobj, _menhir_box_main) _menhir_cell1_nonempty_list_SEMICOLON_, _menhir_box_main) _menhir_state
    (** State 41.
        Stack shape : predobj nonempty_list(SEMICOLON).
        Start symbol: main. *)

  | MenhirState45 : (('s, _menhir_box_main) _menhir_cell1_object_, _menhir_box_main) _menhir_state
    (** State 45.
        Stack shape : object_.
        Start symbol: main. *)

  | MenhirState49 : (('s, _menhir_box_main) _menhir_cell1_BASE, _menhir_box_main) _menhir_state
    (** State 49.
        Stack shape : BASE.
        Start symbol: main. *)

  | MenhirState52 : (('s, _menhir_box_main) _menhir_cell1_AT_PREFIX _menhir_cell0_Identifier, _menhir_box_main) _menhir_state
    (** State 52.
        Stack shape : AT_PREFIX Identifier.
        Start symbol: main. *)

  | MenhirState55 : (('s, _menhir_box_main) _menhir_cell1_AT_BASE, _menhir_box_main) _menhir_state
    (** State 55.
        Stack shape : AT_BASE.
        Start symbol: main. *)

  | MenhirState60 : (('s, _menhir_box_main) _menhir_cell1_subject, _menhir_box_main) _menhir_state
    (** State 60.
        Stack shape : subject.
        Start symbol: main. *)

  | MenhirState62 : (('s, _menhir_box_main) _menhir_cell1_statement, _menhir_box_main) _menhir_state
    (** State 62.
        Stack shape : statement.
        Start symbol: main. *)

  | MenhirState68 : (('s, _menhir_box_main) _menhir_cell1_blanknodepropertylist, _menhir_box_main) _menhir_state
    (** State 68.
        Stack shape : blanknodepropertylist.
        Start symbol: main. *)

  | MenhirState76 : ('s, _menhir_box_nq) _menhir_state
    (** State 76.
        Stack shape : .
        Start symbol: nq. *)

  | MenhirState78 : (('s, _menhir_box_nq) _menhir_cell1_nq_triple, _menhir_box_nq) _menhir_state
    (** State 78.
        Stack shape : nq_triple.
        Start symbol: nq. *)

  | MenhirState84 : (('s, _menhir_box_nq) _menhir_cell1_nq_sub, _menhir_box_nq) _menhir_state
    (** State 84.
        Stack shape : nq_sub.
        Start symbol: nq. *)

  | MenhirState85 : ((('s, _menhir_box_nq) _menhir_cell1_nq_sub, _menhir_box_nq) _menhir_cell1_iriref, _menhir_box_nq) _menhir_state
    (** State 85.
        Stack shape : nq_sub iriref.
        Start symbol: nq. *)

  | MenhirState90 : (('s, _menhir_box_nq) _menhir_cell1_nq_quad, _menhir_box_nq) _menhir_state
    (** State 90.
        Stack shape : nq_quad.
        Start symbol: nq. *)


and ('s, 'r) _menhir_cell1_at_identifier = 
  | MenhirCell1_at_identifier of 's * ('s, 'r) _menhir_state * (string)

and ('s, 'r) _menhir_cell1_blanknodepropertylist = 
  | MenhirCell1_blanknodepropertylist of 's * ('s, 'r) _menhir_state * (Ttl_types.blank)

and ('s, 'r) _menhir_cell1_iriref = 
  | MenhirCell1_iriref of 's * ('s, 'r) _menhir_state * (string)

and ('s, 'r) _menhir_cell1_nonempty_list_SEMICOLON_ = 
  | MenhirCell1_nonempty_list_SEMICOLON_ of 's * ('s, 'r) _menhir_state * (unit list)

and ('s, 'r) _menhir_cell1_nq_quad = 
  | MenhirCell1_nq_quad of 's * ('s, 'r) _menhir_state * (Term.term * Iri.t * Term.term * Ds.name option)

and ('s, 'r) _menhir_cell1_nq_sub = 
  | MenhirCell1_nq_sub of 's * ('s, 'r) _menhir_state * (Term.term)

and ('s, 'r) _menhir_cell1_nq_triple = 
  | MenhirCell1_nq_triple of 's * ('s, 'r) _menhir_state * (Term.term * Iri.t * Term.term)

and ('s, 'r) _menhir_cell1_object_ = 
  | MenhirCell1_object_ of 's * ('s, 'r) _menhir_state * (Ttl_types.object_)

and ('s, 'r) _menhir_cell1_predobj = 
  | MenhirCell1_predobj of 's * ('s, 'r) _menhir_state * (Ttl_types.predobj)

and ('s, 'r) _menhir_cell1_statement = 
  | MenhirCell1_statement of 's * ('s, 'r) _menhir_state * (Ttl_types.statement)

and ('s, 'r) _menhir_cell1_subject = 
  | MenhirCell1_subject of 's * ('s, 'r) _menhir_state * (Ttl_types.subject)

and ('s, 'r) _menhir_cell1_verb = 
  | MenhirCell1_verb of 's * ('s, 'r) _menhir_state * (Ttl_types.pred)

and ('s, 'r) _menhir_cell1_AT_BASE = 
  | MenhirCell1_AT_BASE of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_AT_PREFIX = 
  | MenhirCell1_AT_PREFIX of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_BASE = 
  | MenhirCell1_BASE of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_HATHAT = 
  | MenhirCell1_HATHAT of 's * ('s, 'r) _menhir_state

and 's _menhir_cell0_Identifier = 
  | MenhirCell0_Identifier of 's * (
# 41 "lib/ttl_parser.mly"
       (string)
# 263 "lib/ttl_parser.ml"
)

and ('s, 'r) _menhir_cell1_LEFT_BRACKET = 
  | MenhirCell1_LEFT_BRACKET of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_LEFT_PAR = 
  | MenhirCell1_LEFT_PAR of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_PREFIX = 
  | MenhirCell1_PREFIX of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_SEMICOLON = 
  | MenhirCell1_SEMICOLON of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_String_ = 
  | MenhirCell1_String_ of 's * ('s, 'r) _menhir_state * (
# 45 "lib/ttl_parser.mly"
       (string)
# 282 "lib/ttl_parser.ml"
)

and _menhir_box_nq = 
  | MenhirBox_nq of ((Term.term * Iri.t * Term.term * Ds.name option) list) [@@unboxed]

and _menhir_box_main = 
  | MenhirBox_main of (Ttl_types.turtle) [@@unboxed]

let _menhir_action_02 =
  fun _1 ->
    (
# 151 "lib/ttl_parser.mly"
                             ( _1 )
# 296 "lib/ttl_parser.ml"
     : (string))

let _menhir_action_03 =
  fun iri ->
    (
# 77 "lib/ttl_parser.mly"
    ( Base iri )
# 304 "lib/ttl_parser.ml"
     : (Ttl_types.directive))

let _menhir_action_04 =
  fun iri ->
    (
# 79 "lib/ttl_parser.mly"
    ( Base iri )
# 312 "lib/ttl_parser.ml"
     : (Ttl_types.directive))

let _menhir_action_05 =
  fun _1 ->
    (
# 108 "lib/ttl_parser.mly"
        ( NodeId _1 )
# 320 "lib/ttl_parser.ml"
     : (Ttl_types.blank))

let _menhir_action_06 =
  fun () ->
    (
# 109 "lib/ttl_parser.mly"
       ( Empty )
# 328 "lib/ttl_parser.ml"
     : (Ttl_types.blank))

let _menhir_action_07 =
  fun _2 ->
    (
# 148 "lib/ttl_parser.mly"
                                      ( PredObjs _2 )
# 336 "lib/ttl_parser.ml"
     : (Ttl_types.blank))

let _menhir_action_08 =
  fun _2 ->
    (
# 112 "lib/ttl_parser.mly"
                                             ( _2 )
# 344 "lib/ttl_parser.ml"
     : (Ttl_types.object_ list))

let _menhir_action_09 =
  fun _2 ->
    (
# 154 "lib/ttl_parser.mly"
                     ( _2 )
# 352 "lib/ttl_parser.ml"
     : (Ttl_types.iri))

let _menhir_action_10 =
  fun _1 ->
    (
# 64 "lib/ttl_parser.mly"
           ( _1 )
# 360 "lib/ttl_parser.ml"
     : (Ttl_types.directive))

let _menhir_action_11 =
  fun _1 ->
    (
# 65 "lib/ttl_parser.mly"
       ( _1 )
# 368 "lib/ttl_parser.ml"
     : (Ttl_types.directive))

let _menhir_action_12 =
  fun _1 ->
    (
# 95 "lib/ttl_parser.mly"
         ( Iriref _1 )
# 376 "lib/ttl_parser.ml"
     : (Ttl_types.iri))

let _menhir_action_13 =
  fun _1 ->
    (
# 96 "lib/ttl_parser.mly"
               ( _1 )
# 384 "lib/ttl_parser.ml"
     : (Ttl_types.iri))

let _menhir_action_14 =
  fun iri ->
    (
# 157 "lib/ttl_parser.mly"
                    ( iri )
# 392 "lib/ttl_parser.ml"
     : (string))

let _menhir_action_15 =
  fun () ->
    (
# 216 "<standard.mly>"
    ( [] )
# 400 "lib/ttl_parser.ml"
     : (unit list))

let _menhir_action_16 =
  fun x xs ->
    (
# 219 "<standard.mly>"
    ( x :: xs )
# 408 "lib/ttl_parser.ml"
     : (unit list))

let _menhir_action_17 =
  fun () ->
    (
# 216 "<standard.mly>"
    ( [] )
# 416 "lib/ttl_parser.ml"
     : ((Term.term * Iri.t * Term.term * Ds.name option) list))

let _menhir_action_18 =
  fun x xs ->
    (
# 219 "<standard.mly>"
    ( x :: xs )
# 424 "lib/ttl_parser.ml"
     : ((Term.term * Iri.t * Term.term * Ds.name option) list))

let _menhir_action_19 =
  fun () ->
    (
# 216 "<standard.mly>"
    ( [] )
# 432 "lib/ttl_parser.ml"
     : (Ttl_types.object_ list))

let _menhir_action_20 =
  fun x xs ->
    (
# 219 "<standard.mly>"
    ( x :: xs )
# 440 "lib/ttl_parser.ml"
     : (Ttl_types.object_ list))

let _menhir_action_21 =
  fun () ->
    (
# 216 "<standard.mly>"
    ( [] )
# 448 "lib/ttl_parser.ml"
     : (Ttl_types.turtle))

let _menhir_action_22 =
  fun x xs ->
    (
# 219 "<standard.mly>"
    ( x :: xs )
# 456 "lib/ttl_parser.ml"
     : (Ttl_types.turtle))

let _menhir_action_23 =
  fun _1 ->
    (
# 137 "lib/ttl_parser.mly"
          ( String (_1, None, None) )
# 464 "lib/ttl_parser.ml"
     : (Ttl_types.literal))

let _menhir_action_24 =
  fun _1 lang ->
    (
# 138 "lib/ttl_parser.mly"
                             ( String (_1, Some lang, None) )
# 472 "lib/ttl_parser.ml"
     : (Ttl_types.literal))

let _menhir_action_25 =
  fun _1 dt ->
    (
# 139 "lib/ttl_parser.mly"
                      ( String (_1, None, Some dt) )
# 480 "lib/ttl_parser.ml"
     : (Ttl_types.literal))

let _menhir_action_26 =
  fun _1 dt lang ->
    (
# 140 "lib/ttl_parser.mly"
                                         ( String (_1, Some lang, Some dt) )
# 488 "lib/ttl_parser.ml"
     : (Ttl_types.literal))

let _menhir_action_27 =
  fun _1 ->
    (
# 141 "lib/ttl_parser.mly"
          ( String (_1, None, Some (Iriref (Iri.to_string Rdf_.xsd_integer))) )
# 496 "lib/ttl_parser.ml"
     : (Ttl_types.literal))

let _menhir_action_28 =
  fun _1 ->
    (
# 142 "lib/ttl_parser.mly"
          ( String (_1, None, Some (Iriref (Iri.to_string Rdf_.xsd_decimal))) )
# 504 "lib/ttl_parser.ml"
     : (Ttl_types.literal))

let _menhir_action_29 =
  fun _1 ->
    (
# 143 "lib/ttl_parser.mly"
         ( String (_1, None, Some (Iriref (Iri.to_string Rdf_.xsd_double))) )
# 512 "lib/ttl_parser.ml"
     : (Ttl_types.literal))

let _menhir_action_30 =
  fun _1 ->
    (
# 144 "lib/ttl_parser.mly"
          ( String (_1, None, Some (Iriref (Iri.to_string Rdf_.xsd_boolean))) )
# 520 "lib/ttl_parser.ml"
     : (Ttl_types.literal))

let _menhir_action_31 =
  fun _1 ->
    (
# 56 "lib/ttl_parser.mly"
                                   ( _1 )
# 528 "lib/ttl_parser.ml"
     : (Ttl_types.turtle))

let _menhir_action_32 =
  fun x ->
    (
# 228 "<standard.mly>"
    ( [ x ] )
# 536 "lib/ttl_parser.ml"
     : (unit list))

let _menhir_action_33 =
  fun x xs ->
    (
# 231 "<standard.mly>"
    ( x :: xs )
# 544 "lib/ttl_parser.ml"
     : (unit list))

let _menhir_action_34 =
  fun _1 ->
    (
# 160 "lib/ttl_parser.mly"
                              ( _1 )
# 552 "lib/ttl_parser.ml"
     : ((Term.term * Iri.t * Term.term * Ds.name option) list))

let _menhir_action_35 =
  fun i ->
    (
# 197 "lib/ttl_parser.mly"
           ( `I (Iri.of_string i) )
# 560 "lib/ttl_parser.ml"
     : (Ds.name))

let _menhir_action_36 =
  fun id ->
    (
# 198 "lib/ttl_parser.mly"
           ( `B (Term.blank_id_of_string id) )
# 568 "lib/ttl_parser.ml"
     : (Ds.name))

let _menhir_action_37 =
  fun t ->
    (
# 178 "lib/ttl_parser.mly"
           ( t )
# 576 "lib/ttl_parser.ml"
     : (Term.term))

let _menhir_action_38 =
  fun l ->
    (
# 179 "lib/ttl_parser.mly"
            (
  let String (v,lang,typ) = l in
  let typ =
    match typ with
    | Some (Iriref i) -> Some (Iri.of_string i)
    | Some (Qname (p,s)) ->
       let s = Printf.sprintf "%s:%s"
         (Option.value ~default:"" p)
         (Option.value ~default:"" s)
       in
       Some (Iri.of_string s)
    | None when lang = None -> Some Rdf_.xsd_string
    | None -> Some Rdf_.dt_langString
  in
  Term.(Literal (mk_literal ?typ ?lang v)) )
# 598 "lib/ttl_parser.ml"
     : (Term.term))

let _menhir_action_39 =
  fun name t ->
    (
# 163 "lib/ttl_parser.mly"
                                        (
   let (sub,pred,obj) = t in
   (sub, pred, obj, name)
  )
# 609 "lib/ttl_parser.ml"
     : (Term.term * Iri.t * Term.term * Ds.name option))

let _menhir_action_40 =
  fun i ->
    (
# 173 "lib/ttl_parser.mly"
           ( Term.Iri (Iri.of_string i) )
# 617 "lib/ttl_parser.ml"
     : (Term.term))

let _menhir_action_41 =
  fun id ->
    (
# 174 "lib/ttl_parser.mly"
           ( Term.(Blank_ (blank_id_of_string id)) )
# 625 "lib/ttl_parser.ml"
     : (Term.term))

let _menhir_action_42 =
  fun obj pred sub ->
    (
# 169 "lib/ttl_parser.mly"
                                    ( (sub, Iri.of_string pred, obj) )
# 633 "lib/ttl_parser.ml"
     : (Term.term * Iri.t * Term.term))

let _menhir_action_43 =
  fun _1 ->
    (
# 124 "lib/ttl_parser.mly"
      ( Obj_iri _1 )
# 641 "lib/ttl_parser.ml"
     : (Ttl_types.object_))

let _menhir_action_44 =
  fun _1 ->
    (
# 125 "lib/ttl_parser.mly"
            ( Obj_blank _1 )
# 649 "lib/ttl_parser.ml"
     : (Ttl_types.object_))

let _menhir_action_45 =
  fun _1 ->
    (
# 126 "lib/ttl_parser.mly"
             ( Obj_blank (Collection _1) )
# 657 "lib/ttl_parser.ml"
     : (Ttl_types.object_))

let _menhir_action_46 =
  fun _1 ->
    (
# 127 "lib/ttl_parser.mly"
                        ( Obj_blank _1 )
# 665 "lib/ttl_parser.ml"
     : (Ttl_types.object_))

let _menhir_action_47 =
  fun _1 ->
    (
# 128 "lib/ttl_parser.mly"
          ( Obj_literal _1 )
# 673 "lib/ttl_parser.ml"
     : (Ttl_types.object_))

let _menhir_action_48 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 681 "lib/ttl_parser.ml"
     : (Ds.name option))

let _menhir_action_49 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 689 "lib/ttl_parser.ml"
     : (Ds.name option))

let _menhir_action_50 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 697 "lib/ttl_parser.ml"
     : (Ttl_types.predobj list option))

let _menhir_action_51 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 705 "lib/ttl_parser.ml"
     : (Ttl_types.predobj list option))

let _menhir_action_52 =
  fun _1 _2 ->
    (
# 120 "lib/ttl_parser.mly"
                                                      ( (_1, _2) )
# 713 "lib/ttl_parser.ml"
     : (Ttl_types.predobj))

let _menhir_action_53 =
  fun _1 _3 ->
    (
# 116 "lib/ttl_parser.mly"
                                            ( _1 :: _3 )
# 721 "lib/ttl_parser.ml"
     : (Ttl_types.predobj list))

let _menhir_action_54 =
  fun _1 ->
    (
# 117 "lib/ttl_parser.mly"
                          ( [ _1 ] )
# 729 "lib/ttl_parser.ml"
     : (Ttl_types.predobj list))

let _menhir_action_55 =
  fun iri n ->
    (
# 70 "lib/ttl_parser.mly"
    ( Prefix (n, iri) )
# 737 "lib/ttl_parser.ml"
     : (Ttl_types.directive))

let _menhir_action_56 =
  fun iri n ->
    (
# 72 "lib/ttl_parser.mly"
    ( Prefix (n, iri) )
# 745 "lib/ttl_parser.ml"
     : (Ttl_types.directive))

let _menhir_action_57 =
  fun _1 ->
    (
# 100 "lib/ttl_parser.mly"
         ( let (a, b) = _1 in Qname (a, b) )
# 753 "lib/ttl_parser.ml"
     : (Ttl_types.iri))

let _menhir_action_58 =
  fun _1 ->
    (
# 101 "lib/ttl_parser.mly"
             (
    let p = match _1 with "" -> None | s -> Some s in
    Qname (p, None)
  )
# 764 "lib/ttl_parser.ml"
     : (Ttl_types.iri))

let _menhir_action_59 =
  fun x ->
    (
# 250 "<standard.mly>"
    ( [ x ] )
# 772 "lib/ttl_parser.ml"
     : (Ttl_types.object_ list))

let _menhir_action_60 =
  fun x xs ->
    (
# 253 "<standard.mly>"
    ( x :: xs )
# 780 "lib/ttl_parser.ml"
     : (Ttl_types.object_ list))

let _menhir_action_61 =
  fun _1 ->
    (
# 59 "lib/ttl_parser.mly"
            ( Directive _1 )
# 788 "lib/ttl_parser.ml"
     : (Ttl_types.statement))

let _menhir_action_62 =
  fun _1 ->
    (
# 60 "lib/ttl_parser.mly"
              ( let (a,b) = _1 in Triples (a, b) )
# 796 "lib/ttl_parser.ml"
     : (Ttl_types.statement))

let _menhir_action_63 =
  fun _1 ->
    (
# 89 "lib/ttl_parser.mly"
      ( Sub_iri _1 )
# 804 "lib/ttl_parser.ml"
     : (Ttl_types.subject))

let _menhir_action_64 =
  fun _1 ->
    (
# 90 "lib/ttl_parser.mly"
            ( Sub_blank _1 )
# 812 "lib/ttl_parser.ml"
     : (Ttl_types.subject))

let _menhir_action_65 =
  fun _1 ->
    (
# 91 "lib/ttl_parser.mly"
             ( Sub_blank (Collection _1) )
# 820 "lib/ttl_parser.ml"
     : (Ttl_types.subject))

let _menhir_action_66 =
  fun _1 _2 ->
    (
# 83 "lib/ttl_parser.mly"
                   ( (_1, _2) )
# 828 "lib/ttl_parser.ml"
     : (Ttl_types.subject * Ttl_types.predobj list))

let _menhir_action_67 =
  fun _1 l ->
    (
# 85 "lib/ttl_parser.mly"
   ( (Sub_blank _1, match l with None -> [] | Some l -> l) )
# 836 "lib/ttl_parser.ml"
     : (Ttl_types.subject * Ttl_types.predobj list))

let _menhir_action_68 =
  fun _1 ->
    (
# 132 "lib/ttl_parser.mly"
      ( Pred_iri _1 )
# 844 "lib/ttl_parser.ml"
     : (Ttl_types.pred))

let _menhir_action_69 =
  fun () ->
    (
# 133 "lib/ttl_parser.mly"
    ( Pred_a )
# 852 "lib/ttl_parser.ml"
     : (Ttl_types.pred))

let _menhir_print_token : token -> string =
  fun _tok ->
    match _tok with
    | A ->
        "A"
    | ANON ->
        "ANON"
    | AT_BASE ->
        "AT_BASE"
    | AT_PREFIX ->
        "AT_PREFIX"
    | At_identifier _ ->
        "At_identifier"
    | BASE ->
        "BASE"
    | Bname _ ->
        "Bname"
    | Boolean _ ->
        "Boolean"
    | COMMA ->
        "COMMA"
    | DOT ->
        "DOT"
    | Decimal _ ->
        "Decimal"
    | Double _ ->
        "Double"
    | EOF ->
        "EOF"
    | HATHAT ->
        "HATHAT"
    | Identifier _ ->
        "Identifier"
    | Integer _ ->
        "Integer"
    | Iriref_ _ ->
        "Iriref_"
    | LEFT_BRACKET ->
        "LEFT_BRACKET"
    | LEFT_PAR ->
        "LEFT_PAR"
    | PREFIX ->
        "PREFIX"
    | Qname_ _ ->
        "Qname_"
    | RIGHT_BRACKET ->
        "RIGHT_BRACKET"
    | RIGHT_PAR ->
        "RIGHT_PAR"
    | SEMICOLON ->
        "SEMICOLON"
    | String_ _ ->
        "String_"

let _menhir_fail : unit -> 'a =
  fun () ->
    Printf.eprintf "Internal failure -- please contact the parser generator's developers.\n%!";
    assert false

include struct
  
  [@@@ocaml.warning "-4-37"]
  
  let _menhir_run_93 : type  ttv_stack. ttv_stack -> _ -> _menhir_box_nq =
    fun _menhir_stack _v ->
      let _1 = _v in
      let _v = _menhir_action_34 _1 in
      MenhirBox_nq _v
  
  let rec _menhir_run_91 : type  ttv_stack. (ttv_stack, _menhir_box_nq) _menhir_cell1_nq_quad -> _ -> _menhir_box_nq =
    fun _menhir_stack _v ->
      let MenhirCell1_nq_quad (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_18 x xs in
      _menhir_goto_list_nq_quad_ _menhir_stack _v _menhir_s
  
  and _menhir_goto_list_nq_quad_ : type  ttv_stack. ttv_stack -> _ -> (ttv_stack, _menhir_box_nq) _menhir_state -> _menhir_box_nq =
    fun _menhir_stack _v _menhir_s ->
      match _menhir_s with
      | MenhirState76 ->
          _menhir_run_93 _menhir_stack _v
      | MenhirState90 ->
          _menhir_run_91 _menhir_stack _v
      | _ ->
          _menhir_fail ()
  
  let _menhir_run_74 : type  ttv_stack. ttv_stack -> _ -> _menhir_box_main =
    fun _menhir_stack _v ->
      let _1 = _v in
      let _v = _menhir_action_31 _1 in
      MenhirBox_main _v
  
  let rec _menhir_run_64 : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_statement -> _ -> _menhir_box_main =
    fun _menhir_stack _v ->
      let MenhirCell1_statement (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_22 x xs in
      _menhir_goto_list_statement_ _menhir_stack _v _menhir_s
  
  and _menhir_goto_list_statement_ : type  ttv_stack. ttv_stack -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _menhir_box_main =
    fun _menhir_stack _v _menhir_s ->
      match _menhir_s with
      | MenhirState00 ->
          _menhir_run_74 _menhir_stack _v
      | MenhirState62 ->
          _menhir_run_64 _menhir_stack _v
      | _ ->
          _menhir_fail ()
  
  let rec _menhir_run_01 : type  ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _1 = _v in
      let _v = _menhir_action_57 _1 in
      _menhir_goto_prefixedName _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_prefixedName : type  ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> _ -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_13 _1 in
      _menhir_goto_iri _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_iri : type  ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> _ -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState00 ->
          _menhir_run_65 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState62 ->
          _menhir_run_65 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState68 ->
          _menhir_run_43 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState60 ->
          _menhir_run_43 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState17 ->
          _menhir_run_43 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState41 ->
          _menhir_run_43 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState06 ->
          _menhir_run_31 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState45 ->
          _menhir_run_31 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState19 ->
          _menhir_run_31 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState28 ->
          _menhir_run_31 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState08 ->
          _menhir_run_12 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_65 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_63 _1 in
      _menhir_goto_subject _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_subject : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_subject (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | Qname_ _v_0 ->
          _menhir_run_01 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState60
      | Iriref_ _v_1 ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState60
      | Identifier _v_2 ->
          _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState60
      | A ->
          _menhir_run_18 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState60
      | _ ->
          _eRR ()
  
  and _menhir_run_04 : type  ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let iri = _v in
      let _v = _menhir_action_14 iri in
      _menhir_goto_iriref _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_iriref : type  ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> _ -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState76 ->
          _menhir_run_89 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState90 ->
          _menhir_run_89 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState85 ->
          _menhir_run_89 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState84 ->
          _menhir_run_85 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState78 ->
          _menhir_run_83 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState55 ->
          _menhir_run_56 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState52 ->
          _menhir_run_53 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState49 ->
          _menhir_run_50 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState00 ->
          _menhir_run_11 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState68 ->
          _menhir_run_11 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState62 ->
          _menhir_run_11 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState60 ->
          _menhir_run_11 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState06 ->
          _menhir_run_11 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState45 ->
          _menhir_run_11 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState17 ->
          _menhir_run_11 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState41 ->
          _menhir_run_11 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState19 ->
          _menhir_run_11 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState28 ->
          _menhir_run_11 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState08 ->
          _menhir_run_11 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState03 ->
          _menhir_run_05 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_89 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_nq) _menhir_state -> _ -> _menhir_box_nq =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let i = _v in
      let _v = _menhir_action_40 i in
      _menhir_goto_nq_sub _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_nq_sub : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_nq) _menhir_state -> _ -> _menhir_box_nq =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState85 ->
          _menhir_run_86 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState90 ->
          _menhir_run_84 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState76 ->
          _menhir_run_84 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_86 : type  ttv_stack. ((ttv_stack, _menhir_box_nq) _menhir_cell1_nq_sub, _menhir_box_nq) _menhir_cell1_iriref -> _ -> _ -> _ -> _ -> _menhir_box_nq =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let t = _v in
      let _v = _menhir_action_37 t in
      _menhir_goto_nq_obj _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
  
  and _menhir_goto_nq_obj : type  ttv_stack. ((ttv_stack, _menhir_box_nq) _menhir_cell1_nq_sub, _menhir_box_nq) _menhir_cell1_iriref -> _ -> _ -> _ -> _ -> _menhir_box_nq =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_iriref (_menhir_stack, _, pred) = _menhir_stack in
      let MenhirCell1_nq_sub (_menhir_stack, _menhir_s, sub) = _menhir_stack in
      let obj = _v in
      let _v = _menhir_action_42 obj pred sub in
      let _menhir_stack = MenhirCell1_nq_triple (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | Iriref_ _v_0 ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState78
      | Bname _v_1 ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          let id = _v_1 in
          let _v = _menhir_action_36 id in
          _menhir_goto_nq_graph _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | DOT ->
          let _v = _menhir_action_48 () in
          _menhir_goto_option_nq_graph_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_nq_graph : type  ttv_stack. (ttv_stack, _menhir_box_nq) _menhir_cell1_nq_triple -> _ -> _ -> _ -> _ -> _menhir_box_nq =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let x = _v in
      let _v = _menhir_action_49 x in
      _menhir_goto_option_nq_graph_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
  
  and _menhir_goto_option_nq_graph_ : type  ttv_stack. (ttv_stack, _menhir_box_nq) _menhir_cell1_nq_triple -> _ -> _ -> _ -> _ -> _menhir_box_nq =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      match (_tok : MenhirBasics.token) with
      | DOT ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_nq_triple (_menhir_stack, _menhir_s, t) = _menhir_stack in
          let name = _v in
          let _v = _menhir_action_39 name t in
          let _menhir_stack = MenhirCell1_nq_quad (_menhir_stack, _menhir_s, _v) in
          (match (_tok : MenhirBasics.token) with
          | Iriref_ _v_0 ->
              _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState90
          | Bname _v_1 ->
              _menhir_run_77 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState90
          | EOF ->
              let _v_2 = _menhir_action_17 () in
              _menhir_run_91 _menhir_stack _v_2
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_77 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_nq) _menhir_state -> _menhir_box_nq =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let id = _v in
      let _v = _menhir_action_41 id in
      _menhir_goto_nq_sub _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_84 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_nq) _menhir_state -> _ -> _menhir_box_nq =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_nq_sub (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | Iriref_ _v_0 ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState84
      | _ ->
          _eRR ()
  
  and _menhir_run_85 : type  ttv_stack. ((ttv_stack, _menhir_box_nq) _menhir_cell1_nq_sub as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_nq) _menhir_state -> _ -> _menhir_box_nq =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_iriref (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | String_ _v_0 ->
          _menhir_run_07 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState85
      | Iriref_ _v_1 ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState85
      | Integer _v_2 ->
          _menhir_run_20 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState85
      | Double _v_3 ->
          _menhir_run_21 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState85
      | Decimal _v_4 ->
          _menhir_run_22 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState85
      | Boolean _v_5 ->
          _menhir_run_23 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState85
      | Bname _v_6 ->
          _menhir_run_77 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState85
      | _ ->
          _eRR ()
  
  and _menhir_run_07 : type  ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | HATHAT ->
          let _menhir_stack = MenhirCell1_String_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_08 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState07
      | At_identifier _v_0 ->
          let _menhir_stack = MenhirCell1_String_ (_menhir_stack, _menhir_s, _v) in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let (_menhir_s, _1) = (MenhirState07, _v_0) in
          let _v = _menhir_action_02 _1 in
          (match (_tok : MenhirBasics.token) with
          | HATHAT ->
              let _menhir_stack = MenhirCell1_at_identifier (_menhir_stack, _menhir_s, _v) in
              _menhir_run_08 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState15
          | ANON | Bname _ | Boolean _ | COMMA | DOT | Decimal _ | Double _ | Identifier _ | Integer _ | Iriref_ _ | LEFT_BRACKET | LEFT_PAR | Qname_ _ | RIGHT_BRACKET | RIGHT_PAR | SEMICOLON | String_ _ ->
              let MenhirCell1_String_ (_menhir_stack, _menhir_s, _1) = _menhir_stack in
              let lang = _v in
              let _v = _menhir_action_24 _1 lang in
              _menhir_goto_literal _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
          | _ ->
              _eRR ())
      | ANON | Bname _ | Boolean _ | COMMA | DOT | Decimal _ | Double _ | Identifier _ | Integer _ | Iriref_ _ | LEFT_BRACKET | LEFT_PAR | Qname_ _ | RIGHT_BRACKET | RIGHT_PAR | SEMICOLON | String_ _ ->
          let _1 = _v in
          let _v = _menhir_action_23 _1 in
          _menhir_goto_literal _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_08 : type  ttv_stack ttv_result. ttv_stack -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _menhir_stack = MenhirCell1_HATHAT (_menhir_stack, _menhir_s) in
      let _menhir_s = MenhirState08 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Qname_ _v ->
          _menhir_run_01 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Iriref_ _v ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Identifier _v ->
          _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_09 : type  ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _1 = _v in
      let _v = _menhir_action_58 _1 in
      _menhir_goto_prefixedName _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_literal : type  ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> _ -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState85 ->
          _menhir_run_88 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState06 ->
          _menhir_run_30 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState45 ->
          _menhir_run_30 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState19 ->
          _menhir_run_30 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState28 ->
          _menhir_run_30 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_88 : type  ttv_stack. ((ttv_stack, _menhir_box_nq) _menhir_cell1_nq_sub, _menhir_box_nq) _menhir_cell1_iriref -> _ -> _ -> _ -> _ -> _menhir_box_nq =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let l = _v in
      let _v = _menhir_action_38 l in
      _menhir_goto_nq_obj _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
  
  and _menhir_run_30 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_47 _1 in
      _menhir_goto_object_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_object_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState45 ->
          _menhir_run_45 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState06 ->
          _menhir_run_45 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState28 ->
          _menhir_run_27 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState19 ->
          _menhir_run_27 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_45 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_object_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | String_ _v_0 ->
          _menhir_run_07 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState45
      | Qname_ _v_1 ->
          _menhir_run_01 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState45
      | LEFT_PAR ->
          _menhir_run_06 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState45
      | LEFT_BRACKET ->
          _menhir_run_17 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState45
      | Iriref_ _v_2 ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState45
      | Integer _v_3 ->
          _menhir_run_20 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState45
      | Identifier _v_4 ->
          _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState45
      | Double _v_5 ->
          _menhir_run_21 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState45
      | Decimal _v_6 ->
          _menhir_run_22 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState45
      | Boolean _v_7 ->
          _menhir_run_23 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState45
      | Bname _v_8 ->
          _menhir_run_24 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState45
      | ANON ->
          _menhir_run_25 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState45
      | RIGHT_PAR ->
          let _v_9 = _menhir_action_19 () in
          _menhir_run_46 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9
      | _ ->
          _eRR ()
  
  and _menhir_run_06 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _menhir_stack = MenhirCell1_LEFT_PAR (_menhir_stack, _menhir_s) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | String_ _v ->
          _menhir_run_07 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState06
      | Qname_ _v ->
          _menhir_run_01 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState06
      | LEFT_PAR ->
          _menhir_run_06 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState06
      | LEFT_BRACKET ->
          _menhir_run_17 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState06
      | Iriref_ _v ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState06
      | Integer _v ->
          _menhir_run_20 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState06
      | Identifier _v ->
          _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState06
      | Double _v ->
          _menhir_run_21 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState06
      | Decimal _v ->
          _menhir_run_22 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState06
      | Boolean _v ->
          _menhir_run_23 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState06
      | Bname _v ->
          _menhir_run_24 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState06
      | ANON ->
          _menhir_run_25 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState06
      | RIGHT_PAR ->
          let _v = _menhir_action_19 () in
          _menhir_run_47 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | _ ->
          _eRR ()
  
  and _menhir_run_17 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _menhir_stack = MenhirCell1_LEFT_BRACKET (_menhir_stack, _menhir_s) in
      let _menhir_s = MenhirState17 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Qname_ _v ->
          _menhir_run_01 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Iriref_ _v ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Identifier _v ->
          _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | A ->
          _menhir_run_18 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_18 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _v = _menhir_action_69 () in
      _menhir_goto_verb _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_verb : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_verb (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | String_ _v_0 ->
          _menhir_run_07 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState19
      | Qname_ _v_1 ->
          _menhir_run_01 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState19
      | LEFT_PAR ->
          _menhir_run_06 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState19
      | LEFT_BRACKET ->
          _menhir_run_17 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState19
      | Iriref_ _v_2 ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState19
      | Integer _v_3 ->
          _menhir_run_20 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState19
      | Identifier _v_4 ->
          _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState19
      | Double _v_5 ->
          _menhir_run_21 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState19
      | Decimal _v_6 ->
          _menhir_run_22 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState19
      | Boolean _v_7 ->
          _menhir_run_23 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState19
      | Bname _v_8 ->
          _menhir_run_24 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState19
      | ANON ->
          _menhir_run_25 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState19
      | _ ->
          _eRR ()
  
  and _menhir_run_20 : type  ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _1 = _v in
      let _v = _menhir_action_27 _1 in
      _menhir_goto_literal _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_21 : type  ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _1 = _v in
      let _v = _menhir_action_29 _1 in
      _menhir_goto_literal _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_22 : type  ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _1 = _v in
      let _v = _menhir_action_28 _1 in
      _menhir_goto_literal _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_23 : type  ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _1 = _v in
      let _v = _menhir_action_30 _1 in
      _menhir_goto_literal _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_24 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _1 = _v in
      let _v = _menhir_action_05 _1 in
      _menhir_goto_blanknode _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_blanknode : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState00 ->
          _menhir_run_71 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState62 ->
          _menhir_run_71 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState06 ->
          _menhir_run_34 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState45 ->
          _menhir_run_34 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState19 ->
          _menhir_run_34 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState28 ->
          _menhir_run_34 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_71 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_64 _1 in
      _menhir_goto_subject _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_34 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_44 _1 in
      _menhir_goto_object_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_25 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _v = _menhir_action_06 () in
      _menhir_goto_blanknode _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_47 : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_LEFT_PAR -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let MenhirCell1_LEFT_PAR (_menhir_stack, _menhir_s) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_08 _2 in
      _menhir_goto_collection _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_collection : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState00 ->
          _menhir_run_67 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState62 ->
          _menhir_run_67 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState06 ->
          _menhir_run_32 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState45 ->
          _menhir_run_32 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState19 ->
          _menhir_run_32 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState28 ->
          _menhir_run_32 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_67 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_65 _1 in
      _menhir_goto_subject _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_32 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_45 _1 in
      _menhir_goto_object_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_46 : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_object_ -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let MenhirCell1_object_ (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_20 x xs in
      _menhir_goto_list_object__ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
  
  and _menhir_goto_list_object__ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      match _menhir_s with
      | MenhirState06 ->
          _menhir_run_47 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | MenhirState45 ->
          _menhir_run_46 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_27 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | COMMA ->
          let _menhir_stack = MenhirCell1_object_ (_menhir_stack, _menhir_s, _v) in
          let _menhir_s = MenhirState28 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | String_ _v ->
              _menhir_run_07 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Qname_ _v ->
              _menhir_run_01 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | LEFT_PAR ->
              _menhir_run_06 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LEFT_BRACKET ->
              _menhir_run_17 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_20 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Identifier _v ->
              _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_21 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_22 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Boolean _v ->
              _menhir_run_23 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Bname _v ->
              _menhir_run_24 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ANON ->
              _menhir_run_25 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | DOT | RIGHT_BRACKET | SEMICOLON ->
          let x = _v in
          let _v = _menhir_action_59 x in
          _menhir_goto_separated_nonempty_list_COMMA_object__ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_separated_nonempty_list_COMMA_object__ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState28 ->
          _menhir_run_29 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState19 ->
          _menhir_run_26 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_29 : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_object_ -> _ -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_object_ (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_60 x xs in
      _menhir_goto_separated_nonempty_list_COMMA_object__ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_26 : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_verb -> _ -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_verb (_menhir_stack, _menhir_s, _1) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_52 _1 _2 in
      let _menhir_stack = MenhirCell1_predobj (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | SEMICOLON ->
          _menhir_run_38 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState37
      | DOT | RIGHT_BRACKET ->
          let _ = _menhir_action_15 () in
          _menhir_run_44 _menhir_stack _menhir_lexbuf _menhir_lexer _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_38 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | SEMICOLON ->
          let _menhir_stack = MenhirCell1_SEMICOLON (_menhir_stack, _menhir_s) in
          _menhir_run_38 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState38
      | DOT | RIGHT_BRACKET ->
          let _menhir_stack = MenhirCell1_SEMICOLON (_menhir_stack, _menhir_s) in
          let _v = _menhir_action_15 () in
          _menhir_run_40 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | A | Identifier _ | Iriref_ _ | Qname_ _ ->
          let x = () in
          let _v = _menhir_action_32 x in
          _menhir_goto_nonempty_list_SEMICOLON_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_40 : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_SEMICOLON -> _ -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_SEMICOLON (_menhir_stack, _menhir_s) = _menhir_stack in
      let (xs, x) = (_v, ()) in
      let _v = _menhir_action_16 x xs in
      _menhir_goto_list_SEMICOLON_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_list_SEMICOLON_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState37 ->
          _menhir_run_44 _menhir_stack _menhir_lexbuf _menhir_lexer _tok
      | MenhirState38 ->
          _menhir_run_40 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_44 : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_predobj -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _tok ->
      let MenhirCell1_predobj (_menhir_stack, _menhir_s, _1) = _menhir_stack in
      let _v = _menhir_action_54 _1 in
      _menhir_goto_predobjs _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_predobjs : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState68 ->
          _menhir_run_69 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState60 ->
          _menhir_run_61 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState41 ->
          _menhir_run_42 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState17 ->
          _menhir_run_35 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_69 : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_blanknodepropertylist -> _ -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let x = _v in
      let _v = _menhir_action_51 x in
      _menhir_goto_option_predobjs_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
  
  and _menhir_goto_option_predobjs_ : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_blanknodepropertylist -> _ -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_blanknodepropertylist (_menhir_stack, _menhir_s, _1) = _menhir_stack in
      let l = _v in
      let _v = _menhir_action_67 _1 l in
      _menhir_goto_triples _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_triples : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | DOT ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          let _1 = _v in
          let _v = _menhir_action_62 _1 in
          _menhir_goto_statement _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_statement : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_statement (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | Qname_ _v_0 ->
          _menhir_run_01 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState62
      | PREFIX ->
          _menhir_run_02 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState62
      | LEFT_PAR ->
          _menhir_run_06 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState62
      | LEFT_BRACKET ->
          _menhir_run_17 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState62
      | Iriref_ _v_1 ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState62
      | Identifier _v_2 ->
          _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState62
      | Bname _v_3 ->
          _menhir_run_24 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState62
      | BASE ->
          _menhir_run_49 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState62
      | AT_PREFIX ->
          _menhir_run_51 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState62
      | AT_BASE ->
          _menhir_run_55 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState62
      | ANON ->
          _menhir_run_25 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState62
      | EOF ->
          let _v_4 = _menhir_action_21 () in
          _menhir_run_64 _menhir_stack _v_4
      | _ ->
          _eRR ()
  
  and _menhir_run_02 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _menhir_stack = MenhirCell1_PREFIX (_menhir_stack, _menhir_s) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Identifier _v ->
          let _menhir_stack = MenhirCell0_Identifier (_menhir_stack, _v) in
          let _menhir_s = MenhirState03 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Iriref_ _v ->
              _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_49 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _menhir_stack = MenhirCell1_BASE (_menhir_stack, _menhir_s) in
      let _menhir_s = MenhirState49 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Iriref_ _v ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_51 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _menhir_stack = MenhirCell1_AT_PREFIX (_menhir_stack, _menhir_s) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Identifier _v ->
          let _menhir_stack = MenhirCell0_Identifier (_menhir_stack, _v) in
          let _menhir_s = MenhirState52 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Iriref_ _v ->
              _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_55 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _menhir_stack = MenhirCell1_AT_BASE (_menhir_stack, _menhir_s) in
      let _menhir_s = MenhirState55 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Iriref_ _v ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_61 : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_subject -> _ -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_subject (_menhir_stack, _menhir_s, _1) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_66 _1 _2 in
      _menhir_goto_triples _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_42 : type  ttv_stack. ((ttv_stack, _menhir_box_main) _menhir_cell1_predobj, _menhir_box_main) _menhir_cell1_nonempty_list_SEMICOLON_ -> _ -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_nonempty_list_SEMICOLON_ (_menhir_stack, _, _) = _menhir_stack in
      let MenhirCell1_predobj (_menhir_stack, _menhir_s, _1) = _menhir_stack in
      let _3 = _v in
      let _v = _menhir_action_53 _1 _3 in
      _menhir_goto_predobjs _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_35 : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_LEFT_BRACKET -> _ -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      match (_tok : MenhirBasics.token) with
      | RIGHT_BRACKET ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_LEFT_BRACKET (_menhir_stack, _menhir_s) = _menhir_stack in
          let _2 = _v in
          let _v = _menhir_action_07 _2 in
          _menhir_goto_blanknodepropertylist _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_blanknodepropertylist : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState00 ->
          _menhir_run_68 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState62 ->
          _menhir_run_68 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState06 ->
          _menhir_run_33 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState45 ->
          _menhir_run_33 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState19 ->
          _menhir_run_33 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState28 ->
          _menhir_run_33 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_68 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_blanknodepropertylist (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | Qname_ _v_0 ->
          _menhir_run_01 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState68
      | Iriref_ _v_1 ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState68
      | Identifier _v_2 ->
          _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState68
      | A ->
          _menhir_run_18 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState68
      | DOT ->
          let _v = _menhir_action_50 () in
          _menhir_goto_option_predobjs_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_33 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_46 _1 in
      _menhir_goto_object_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_nonempty_list_SEMICOLON_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState37 ->
          _menhir_run_41 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState38 ->
          _menhir_run_39 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_41 : type  ttv_stack. ((ttv_stack, _menhir_box_main) _menhir_cell1_predobj as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_nonempty_list_SEMICOLON_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | Qname_ _v_0 ->
          _menhir_run_01 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState41
      | Iriref_ _v_1 ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState41
      | Identifier _v_2 ->
          _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState41
      | A ->
          _menhir_run_18 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState41
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_39 : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_SEMICOLON -> _ -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_SEMICOLON (_menhir_stack, _menhir_s) = _menhir_stack in
      let (xs, x) = (_v, ()) in
      let _v = _menhir_action_33 x xs in
      _menhir_goto_nonempty_list_SEMICOLON_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_83 : type  ttv_stack. (ttv_stack, _menhir_box_nq) _menhir_cell1_nq_triple -> _ -> _ -> _ -> _ -> _menhir_box_nq =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let i = _v in
      let _v = _menhir_action_35 i in
      _menhir_goto_nq_graph _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
  
  and _menhir_run_56 : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_AT_BASE -> _ -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      match (_tok : MenhirBasics.token) with
      | DOT ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_AT_BASE (_menhir_stack, _menhir_s) = _menhir_stack in
          let iri = _v in
          let _v = _menhir_action_03 iri in
          _menhir_goto_base _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_base : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_11 _1 in
      _menhir_goto_directive _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_directive : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_61 _1 in
      _menhir_goto_statement _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_53 : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_AT_PREFIX _menhir_cell0_Identifier -> _ -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      match (_tok : MenhirBasics.token) with
      | DOT ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_Identifier (_menhir_stack, n) = _menhir_stack in
          let MenhirCell1_AT_PREFIX (_menhir_stack, _menhir_s) = _menhir_stack in
          let iri = _v in
          let _v = _menhir_action_55 iri n in
          _menhir_goto_prefixID _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_prefixID : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_10 _1 in
      _menhir_goto_directive _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_50 : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_BASE -> _ -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_BASE (_menhir_stack, _menhir_s) = _menhir_stack in
      let iri = _v in
      let _v = _menhir_action_04 iri in
      _menhir_goto_base _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_11 : type  ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> _ -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_12 _1 in
      _menhir_goto_iri _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_05 : type  ttv_stack. (ttv_stack, _menhir_box_main) _menhir_cell1_PREFIX _menhir_cell0_Identifier -> _ -> _ -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell0_Identifier (_menhir_stack, n) = _menhir_stack in
      let MenhirCell1_PREFIX (_menhir_stack, _menhir_s) = _menhir_stack in
      let iri = _v in
      let _v = _menhir_action_56 iri n in
      _menhir_goto_prefixID _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_43 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_68 _1 in
      _menhir_goto_verb _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_31 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_main) _menhir_state -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_43 _1 in
      _menhir_goto_object_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_12 : type  ttv_stack ttv_result. (ttv_stack, ttv_result) _menhir_cell1_HATHAT -> _ -> _ -> _ -> _ -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_HATHAT (_menhir_stack, _menhir_s) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_09 _2 in
      _menhir_goto_datatype _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_datatype : type  ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> _ -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState15 ->
          _menhir_run_16 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState07 ->
          _menhir_run_14 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_16 : type  ttv_stack ttv_result. ((ttv_stack, ttv_result) _menhir_cell1_String_, ttv_result) _menhir_cell1_at_identifier -> _ -> _ -> _ -> _ -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_at_identifier (_menhir_stack, _, lang) = _menhir_stack in
      let MenhirCell1_String_ (_menhir_stack, _menhir_s, _1) = _menhir_stack in
      let dt = _v in
      let _v = _menhir_action_26 _1 dt lang in
      _menhir_goto_literal _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_14 : type  ttv_stack ttv_result. (ttv_stack, ttv_result) _menhir_cell1_String_ -> _ -> _ -> _ -> _ -> ttv_result =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_String_ (_menhir_stack, _menhir_s, _1) = _menhir_stack in
      let dt = _v in
      let _v = _menhir_action_25 _1 dt in
      _menhir_goto_literal _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  let _menhir_run_00 : type  ttv_stack. ttv_stack -> _ -> _ -> _menhir_box_main =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Qname_ _v ->
          _menhir_run_01 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState00
      | PREFIX ->
          _menhir_run_02 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState00
      | LEFT_PAR ->
          _menhir_run_06 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState00
      | LEFT_BRACKET ->
          _menhir_run_17 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState00
      | Iriref_ _v ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState00
      | Identifier _v ->
          _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState00
      | Bname _v ->
          _menhir_run_24 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState00
      | BASE ->
          _menhir_run_49 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState00
      | AT_PREFIX ->
          _menhir_run_51 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState00
      | AT_BASE ->
          _menhir_run_55 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState00
      | ANON ->
          _menhir_run_25 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState00
      | EOF ->
          let _v = _menhir_action_21 () in
          _menhir_run_74 _menhir_stack _v
      | _ ->
          _eRR ()
  
  let _menhir_run_76 : type  ttv_stack. ttv_stack -> _ -> _ -> _menhir_box_nq =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Iriref_ _v ->
          _menhir_run_04 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState76
      | Bname _v ->
          _menhir_run_77 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState76
      | EOF ->
          let _v = _menhir_action_17 () in
          _menhir_run_93 _menhir_stack _v
      | _ ->
          _eRR ()
  
end

let nq =
  fun _menhir_lexer _menhir_lexbuf ->
    let _menhir_stack = () in
    let MenhirBox_nq v = _menhir_run_76 _menhir_stack _menhir_lexbuf _menhir_lexer in
    v

let main =
  fun _menhir_lexer _menhir_lexbuf ->
    let _menhir_stack = () in
    let MenhirBox_main v = _menhir_run_00 _menhir_stack _menhir_lexbuf _menhir_lexer in
    v
