1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/// A trait capturing the commonalities between Turtle and TriG grammars
pub trait State: std::fmt::Debug {
/// Construct a new state for production `annotationBlocks`
fn new_annotation_block() -> Self;
/// Construct a new state for production `ANON`
fn new_anon(reifier: bool) -> Self;
/// Construct a new state covering productions `prefixId`, `base` or `version`
fn new_at_directive() -> Self;
/// Construct a new state for production `IRIRef` in the context of a base directiive
fn new_base_iri() -> Self;
/// Construct a new state for production 'collection'
fn new_collection() -> Self;
/// Construct a new state covering production `blankNodePropertyList` and `ANON`
fn new_blank_node_property_list_or_anon() -> Self;
/// Construct a new state for production `objectList`
fn new_object_list() -> Self;
/// Construct a new state for production `object`
fn new_object() -> Self;
/// Construct a new state for production `predicateObjectList`
fn new_predicate_object_list() -> Self;
/// Construct a new state covering productions `prefixID` and `sparqlPrefix`
fn new_prefix_declaration() -> Self;
/// Construct a new state for production `IRIRef` in the context of a prefix declaration
fn new_prefix_iri() -> Self;
/// Construct a new state for production `RdfLiteral`
fn new_rdf_literal(after_dt: bool) -> Self;
/// Construct a new state for production `reifiedTriple`
fn new_reified_triple(inside: bool) -> Self;
/// Construct a new state for production `reifier`
fn new_reifier() -> Self;
/// Construct a new state for production `rtObject`
fn new_rt_object() -> Self;
/// Construct a new state for production `rtSubject`
fn new_rt_subject() -> Self;
/// Construct a new state for production `STRING_LITERAL_LONG_QUOTE` or `STRING_LITERAL_LONG_SINGLE_QUOTE`
fn new_string_literal_long(quote: u8) -> Self;
/// Construct a new state for production `tripleTerm`
fn new_triple_term() -> Self;
/// Construct a new state for production `ttObject`
fn new_tt_object() -> Self;
/// Construct a new state for production `ttSubject`
fn new_tt_subject() -> Self;
/// Construct a new state for production `verb`
fn new_verb() -> Self;
/// Construct a new state for production `VersionSpecifier`
fn new_version_specifier() -> Self;
/// This state corresponds to productions `annotationBlock`
fn in_annotation_block(&self) -> bool;
/// This state corresponds to productions `ANON`
fn in_anon(&self) -> bool;
/// This state corresponds to an at directive
fn in_at_directive(&self) -> bool;
/// This state corresponds to the production `IRIRef` in the context of a base directive
fn in_base_iri(&self) -> bool;
/// This state corresponds to productions `blankNodePropertyList` and `ANON`
fn in_blank_node_property_list_or_anon(&self) -> bool;
/// This state corresponds to production `collection`
fn in_collection(&self) -> bool;
/// This state corresponds to production `LANG_DIR`
fn in_lang_dir(&self) -> bool;
/// This state corresponds to production `objectList`
fn in_object_list(&self) -> bool;
/// This state corresponds to production `predicateObjectList`
fn in_predicate_object_list(&self) -> bool;
/// This state corresponds to productions `prefixId` or `sparqlPrefix`
fn in_prefix_declaration(&self) -> bool;
/// This state corresponds to productions `IRIRef` in the context of a prefix declataion
fn in_prefix_iri(&self) -> bool;
/// This state corresponds to productions `RdfLiteral`
fn in_rdf_literal(&self) -> bool;
/// This state corresponds to productions `reifiedTriple`
fn in_reified_triple(&self, inside: bool) -> bool;
/// This state corresponds to productions `reifier`
fn in_reifier(&self) -> bool;
/// This state corresponds to productions `rtObject`
fn in_rt_object(&self) -> bool;
/// This state corresponds to productions `rtSubject`
fn in_rt_subject(&self) -> bool;
/// This state corresponds to a context where productions `STRING_LITERAL_LONG_QUOTE` or `STRING_LITERAL_LONG_SINGLE_QUOTE` can occur
fn in_string_literal_long(&self) -> bool;
/// This state corresponds to production `tripleTerm`
fn in_triple_term(&self) -> bool;
/// This state corresponds to production `triples`
fn in_triples(&self) -> bool;
/// This state corresponds to productions `ttObject`
fn in_tt_object(&self) -> bool;
/// This state corresponds to productions `ttSubject`
fn in_tt_subject(&self) -> bool;
/// This state corresponds to production `verb`
fn in_verb(&self) -> bool;
/// This state corresponds to a context where production `BooleanLiteral` can occur
fn in_boolean_literal_context(&self) -> bool;
/// This state corresponds to a context where production `NumericLiteral` can occur
fn in_numeric_literal_context(&self) -> bool;
/// This state corresponds to a context where production `object` can occur
fn in_object_context(&self) -> bool;
/// This state corresponds to a context where production `NumericLiteral` can occur
fn in_predicate_object_list_context(&self) -> bool;
/// This state corresponds to a context where production `RDFLiteral` can occur
fn in_rdf_literal_context(&self) -> bool;
/// This state corresponds to a context where production `verb` can occur
fn in_verb_context(&self) -> bool;
/// This state corresponds to productions `prefixID` or `sparqlPrefix`
fn in_version_specifier(&self) -> bool;
/// If this state corresponds to production `triple`,
/// return a mutable reference to the `require_pol` flag.
fn as_triples_require_pol_mut(&mut self) -> Option<&mut bool>;
}