1YAML::PP::Grammar(3)  User Contributed Perl Documentation YAML::PP::Grammar(3)
2
3
4

NAME

6       YAML::PP::Grammar - YAML grammar
7

GRAMMAR

9       This is the Grammar in YAML
10
11           # START OF YAML INLINE
12
13           # DO NOT CHANGE THIS
14           # This grammar is automatically generated from etc/grammar.yaml
15
16           ---
17           NODETYPE_NODE:
18             DASH:
19               match: cb_seqstart
20               EOL: { new: FULLNODE }
21               WS: { new: FULLNODE }
22
23             DEFAULT: { new: NODETYPE_SCALAR_OR_MAP }
24
25           NODETYPE_SCALAR_OR_MAP:
26
27             # Flow nodes can follow tabs
28             WS: { new: FULLMAPVALUE_INLINE }
29
30             ALIAS:
31               match: cb_alias
32               EOL: { match: cb_send_alias_from_stack }
33               WS:
34                 COLON:
35                   match: cb_insert_map_alias
36                   EOL: { new: FULLNODE }
37                   WS: { new: FULLMAPVALUE_INLINE }
38
39             QUESTION:
40               match: cb_questionstart
41               EOL: { new: FULLNODE }
42               WS: { new: FULLNODE }
43
44             QUOTED:
45               match: cb_take_quoted
46               EOL: { match: cb_send_scalar }
47               WS:
48                 COLON:
49                   match: cb_insert_map
50                   EOL: { new: FULLNODE }
51                   WS: { new: FULLMAPVALUE_INLINE }
52               COLON:
53                 match: cb_insert_map
54                 EOL: { new: FULLNODE }
55                 WS: { new: FULLMAPVALUE_INLINE }
56
57             QUOTED_MULTILINE:
58               match: cb_quoted_multiline
59               EOL: {  }
60
61
62             PLAIN:
63               match: cb_start_plain
64               EOL:
65                 match: cb_send_scalar
66               WS:
67                 COLON:
68                   match: cb_insert_map
69                   EOL: { new: FULLNODE }
70                   WS: { new: FULLMAPVALUE_INLINE }
71               COLON:
72                 match: cb_insert_map
73                 EOL: { new: FULLNODE }
74                 WS: { new: FULLMAPVALUE_INLINE }
75
76             PLAIN_MULTI:
77               match: cb_send_plain_multi
78               EOL: { }
79
80             COLON:
81               match: cb_insert_empty_map
82               EOL: { new: FULLNODE }
83               WS: { new: FULLMAPVALUE_INLINE }
84
85             BLOCK_SCALAR:
86               match: cb_send_block_scalar
87               EOL: { }
88
89             FLOWSEQ_START:
90               match: cb_start_flowseq
91               new: NEWFLOWSEQ
92
93             FLOWMAP_START:
94               match: cb_start_flowmap
95               new: NEWFLOWMAP
96
97             DOC_END:
98               match: cb_end_document
99               EOL: { }
100
101             DOC_START:
102               match: cb_end_doc_start_document
103               EOL: { new: FULLNODE }
104               WS: { new: FULLNODE }
105
106             EOL:
107               new: NODETYPE_SCALAR_OR_MAP
108
109           NODETYPE_COMPLEX:
110             COLON:
111               match: cb_complexcolon
112               EOL: { new: FULLNODE }
113               WS: { new: FULLNODE }
114             DEFAULT:
115               match: cb_empty_complexvalue
116               new: NODETYPE_MAP
117             EOL:
118               new: NODETYPE_COMPLEX
119
120           RULE_FULLFLOWSCALAR:
121             ANCHOR:
122               match: cb_anchor
123               EOL: { new: RULE_FULLFLOWSCALAR_ANCHOR }
124               DEFAULT: { new: RULE_FULLFLOWSCALAR_ANCHOR }
125             TAG:
126               match: cb_tag
127               EOL: { new: RULE_FULLFLOWSCALAR_TAG }
128               DEFAULT: { new: RULE_FULLFLOWSCALAR_TAG }
129             DEFAULT: { new: RULE_FLOWSCALAR }
130
131           RULE_FULLFLOWSCALAR_ANCHOR:
132             WS: { new: RULE_FULLFLOWSCALAR_ANCHOR }
133             TAG:
134               match: cb_tag
135               WS: { new: RULE_FLOWSCALAR }
136               EOL: { new: RULE_FLOWSCALAR }
137             DEFAULT: { new: RULE_FLOWSCALAR }
138
139           RULE_FULLFLOWSCALAR_TAG:
140             WS: { new: RULE_FULLFLOWSCALAR_TAG }
141             ANCHOR:
142               match: cb_anchor
143               WS: { new: RULE_FLOWSCALAR }
144               EOL: { new: RULE_FLOWSCALAR }
145             DEFAULT: { new: RULE_FLOWSCALAR }
146
147           RULE_FLOWSCALAR:
148             FLOWSEQ_START: { match: cb_start_flowseq, new: NEWFLOWSEQ }
149             FLOWMAP_START: { match: cb_start_flowmap, new: NEWFLOWMAP }
150
151             ALIAS: { match: cb_send_alias, return: 1 }
152
153             QUOTED:
154               match: cb_take_quoted
155               EOL: { match: cb_send_scalar }
156               WS: { match: cb_send_scalar, return: 1 }
157               DEFAULT: { match: cb_send_scalar, return: 1 }
158
159             QUOTED_MULTILINE: { match: cb_quoted_multiline, return: 1 }
160
161             PLAIN:
162               match: cb_start_plain
163               EOL: { match: cb_send_scalar }
164               DEFAULT: { match: cb_send_scalar, return: 1 }
165
166             PLAIN_MULTI: { match: cb_send_plain_multi, return: 1 }
167
168             FLOW_COMMA: { match: cb_empty_flow_mapkey, return: 1 }
169
170             FLOWMAP_END:
171               match: cb_end_flowmap_empty
172               return: 1
173
174           FLOWSEQ:
175             FLOWSEQ_START: { match: cb_start_flowseq, new: NEWFLOWSEQ }
176             FLOWMAP_START: { match: cb_start_flowmap, new: NEWFLOWMAP }
177
178             ALIAS: { match: cb_send_flow_alias, new: FLOWSEQ_NEXT }
179
180             PLAIN:
181               match: cb_start_plain
182               EOL:
183                 match: cb_send_scalar
184                 new: FLOWSEQ_NEXT
185               DEFAULT:
186                 new: FLOWSEQ_MAYBE_KEY
187             PLAIN_MULTI: { match: cb_send_plain_multi, new: FLOWSEQ_NEXT }
188
189             QUOTED:
190               match: cb_take_quoted
191               EOL:
192                 match: cb_send_scalar
193                 new: FLOWSEQ_NEXT
194               DEFAULT:
195                 new: FLOWSEQ_MAYBE_KEY
196             QUOTED_MULTILINE: { match: cb_quoted_multiline, new: FLOWSEQ_NEXT }
197
198             COLON:
199               WS:
200                 match: cb_insert_empty_implicit_flowseq_map
201                 new: RULE_FULLFLOWSCALAR
202               EOL:
203                 match: cb_insert_empty_implicit_flowseq_map
204                 new: RULE_FULLFLOWSCALAR
205
206           FLOWSEQ_PROPS:
207             FLOWSEQ_START: { match: cb_start_flowseq, new: NEWFLOWSEQ }
208             FLOWMAP_START: { match: cb_start_flowmap, new: NEWFLOWMAP }
209
210             PLAIN:
211               match: cb_start_plain
212               EOL:
213                 match: cb_send_scalar
214                 new: FLOWSEQ_NEXT
215               DEFAULT:
216                 new: FLOWSEQ_MAYBE_KEY
217             PLAIN_MULTI: { match: cb_send_plain_multi, new: FLOWSEQ_NEXT }
218
219             QUOTED:
220               match: cb_take_quoted
221               EOL:
222                 match: cb_send_scalar
223                 new: FLOWSEQ_NEXT
224               DEFAULT:
225                 new: FLOWSEQ_MAYBE_KEY
226             QUOTED_MULTILINE: { match: cb_quoted_multiline, new: FLOWSEQ_NEXT }
227
228             FLOW_COMMA:
229               match: cb_empty_flowseq_comma
230               return: 1
231             FLOWSEQ_END:
232               match: cb_empty_flowseq_end
233               return: 1
234
235             COLON:
236               WS:
237                 match: cb_insert_empty_implicit_flowseq_map
238                 new: RULE_FULLFLOWSCALAR
239               EOL:
240                 match: cb_insert_empty_implicit_flowseq_map
241                 new: RULE_FULLFLOWSCALAR
242
243           FLOWSEQ_EMPTY:
244             FLOW_COMMA:
245               match: cb_empty_flowseq_comma
246               return: 1
247             FLOWSEQ_END:
248               match: cb_empty_flowseq_end
249               return: 1
250
251           FLOWSEQ_NEXT:
252             WS: { new: FLOWSEQ_NEXT }
253             EOL: { new: FLOWSEQ_NEXT }
254
255             FLOW_COMMA:
256               match: cb_flow_comma
257               return: 1
258             FLOWSEQ_END:
259               match: cb_end_flowseq
260               return: 1
261
262           FLOWSEQ_MAYBE_KEY:
263             WS: { new: FLOWSEQ_MAYBE_KEY }
264
265             COLON:
266               WS:
267                 match: cb_insert_implicit_flowseq_map
268                 new: RULE_FULLFLOWSCALAR
269               EOL:
270                 match: cb_insert_implicit_flowseq_map
271                 new: RULE_FULLFLOWSCALAR
272               DEFAULT:
273                 match: cb_insert_implicit_flowseq_map
274                 new: RULE_FULLFLOWSCALAR
275             DEFAULT:
276               new: FLOWSEQ_NEXT
277
278           FLOWMAP_CONTENT:
279             FLOWSEQ_START: { match: cb_start_flowseq, new: NEWFLOWSEQ }
280             FLOWMAP_START: { match: cb_start_flowmap, new: NEWFLOWMAP }
281
282             ALIAS: { match: cb_send_alias, return: 1 }
283
284             PLAIN: { match: cb_flowkey_plain, return: 1 }
285             PLAIN_MULTI: { match: cb_send_plain_multi, return: 1 }
286
287             QUOTED: { match: cb_flowkey_quoted, return: 1 }
288             QUOTED_MULTILINE: { match: cb_quoted_multiline, return: 1 }
289
290             COLON:
291               WS:
292                 match: cb_empty_flow_mapkey
293                 new: RULE_FULLFLOWSCALAR
294               EOL:
295                 match: cb_empty_flow_mapkey
296                 new: RULE_FULLFLOWSCALAR
297
298           FLOWMAP_PROPS:
299             FLOWSEQ_START: { match: cb_start_flowseq, new: NEWFLOWSEQ }
300             FLOWMAP_START: { match: cb_start_flowmap, new: NEWFLOWMAP }
301
302             PLAIN: { match: cb_flowkey_plain, return: 1 }
303             PLAIN_MULTI: { match: cb_send_plain_multi, return: 1 }
304
305             QUOTED: { match: cb_flowkey_quoted, return: 1 }
306             QUOTED_MULTILINE: { match: cb_quoted_multiline, return: 1 }
307
308             COLON:
309               WS:
310                 match: cb_empty_flow_mapkey
311                 new: RULE_FULLFLOWSCALAR
312               EOL:
313                 match: cb_empty_flow_mapkey
314                 new: RULE_FULLFLOWSCALAR
315             FLOW_COMMA:
316               match: cb_empty_flowmap_key_value
317               return: 1
318             FLOWMAP_END:
319               match: cb_end_empty_flowmap_key_value
320               return: 1
321
322           FLOWMAP_EMPTYKEY:
323             FLOW_COMMA:
324               match: cb_empty_flowmap_key_value
325               return: 1
326             FLOWMAP_END:
327               match: cb_end_empty_flowmap_key_value
328               return: 1
329
330           NEWFLOWSEQ:
331             EOL: { new: NEWFLOWSEQ }
332             WS: { new: NEWFLOWSEQ }
333
334             ANCHOR:
335               match: cb_anchor
336               WS: { new: NEWFLOWSEQ_ANCHOR_SPC }
337               EOL: { new: NEWFLOWSEQ_ANCHOR_SPC }
338               DEFAULT: { new: NEWFLOWSEQ_ANCHOR }
339
340             TAG:
341               match: cb_tag
342               WS: { new: NEWFLOWSEQ_TAG_SPC }
343               EOL: { new: NEWFLOWSEQ_TAG_SPC }
344               DEFAULT: { new: NEWFLOWSEQ_TAG }
345
346             FLOWSEQ_END:
347               match: cb_end_flowseq
348               return: 1
349
350             DEFAULT: { new: FLOWSEQ }
351
352           NODETYPE_FLOWSEQ:
353             EOL: { new: NODETYPE_FLOWSEQ }
354             WS: { new: NODETYPE_FLOWSEQ }
355             FLOWSEQ_END:
356               match: cb_end_flowseq
357               return: 1
358             DEFAULT: { new: NEWFLOWSEQ }
359
360           NODETYPE_FLOWMAPVALUE:
361             WS: { new: NODETYPE_FLOWMAPVALUE }
362             EOL: { new: NODETYPE_FLOWMAPVALUE }
363             COLON:
364               match: cb_flow_colon
365               WS: { new: RULE_FULLFLOWSCALAR }
366               EOL: { new: RULE_FULLFLOWSCALAR }
367               DEFAULT: { new: RULE_FULLFLOWSCALAR }
368             FLOW_COMMA:
369               match: cb_empty_flowmap_value
370               return: 1
371             FLOWMAP_END:
372               match: cb_end_flowmap_empty
373               return: 1
374
375           NEWFLOWSEQ_ANCHOR:
376             DEFAULT: { new: FLOWSEQ_EMPTY }
377           NEWFLOWSEQ_TAG:
378             DEFAULT: { new: FLOWSEQ_EMPTY }
379
380           NEWFLOWSEQ_ANCHOR_SPC:
381             WS: { new: NEWFLOWSEQ_ANCHOR_SPC }
382             EOL: { new: NEWFLOWSEQ_ANCHOR_SPC }
383             TAG:
384               match: cb_tag
385               WS: { new: FLOWSEQ_PROPS }
386               EOL: { new: FLOWSEQ_PROPS }
387               DEFAULT: { new: FLOWSEQ_EMPTY }
388             DEFAULT: { new: FLOWSEQ_PROPS }
389
390           NEWFLOWSEQ_TAG_SPC:
391             WS: { new: NEWFLOWSEQ_TAG_SPC }
392             EOL: { new: NEWFLOWSEQ_TAG_SPC }
393             ANCHOR:
394               match: cb_anchor
395               WS: { new: FLOWSEQ_PROPS }
396               EOL: { new: FLOWSEQ_PROPS }
397               DEFAULT: { new: FLOWSEQ_EMPTY }
398             DEFAULT: { new: FLOWSEQ_PROPS }
399
400
401           NEWFLOWMAP_ANCHOR:
402             DEFAULT: { new: FLOWMAP_EMPTYKEY }
403           NEWFLOWMAP_TAG:
404             DEFAULT: { new: FLOWMAP_EMPTYKEY }
405
406           NEWFLOWMAP_ANCHOR_SPC:
407             WS: { new: NEWFLOWMAP_ANCHOR_SPC }
408             EOL: { new: NEWFLOWMAP_ANCHOR_SPC }
409             TAG:
410               match: cb_tag
411               WS: { new: FLOWMAP_PROPS }
412               EOL: { new: FLOWMAP_PROPS }
413               DEFAULT: { new: FLOWMAP_EMPTYKEY }
414             DEFAULT: { new: FLOWMAP_PROPS }
415
416           NEWFLOWMAP_TAG_SPC:
417             WS: { new: NEWFLOWMAP_TAG_SPC }
418             EOL: { new: NEWFLOWMAP_TAG_SPC }
419             ANCHOR:
420               match: cb_anchor
421               WS: { new: FLOWMAP_PROPS }
422               EOL: { new: FLOWMAP_PROPS }
423               DEFAULT: { new: FLOWMAP_EMPTYKEY }
424             DEFAULT: { new: FLOWMAP_PROPS }
425
426           NEWFLOWMAP:
427             EOL: { new: NEWFLOWMAP }
428             WS: { new: NEWFLOWMAP }
429             QUESTION: { match: cb_flow_question, new: FLOWMAP_EXPLICIT_KEY }
430             DEFAULT: { new: FLOWMAP }
431
432
433           FLOWMAP_EXPLICIT_KEY:
434             WS: { new: FLOWMAP_EXPLICIT_KEY }
435             EOL: { new: FLOWMAP_EXPLICIT_KEY }
436             FLOWMAP_END:
437               match: cb_end_empty_flowmap_key_value
438               return: 1
439             FLOW_COMMA:
440               match: cb_empty_flowmap_key_value
441               return: 1
442             DEFAULT: { new: FLOWMAP }
443
444           FLOWMAP:
445             EOL: { new: FLOWMAP }
446             WS: { new: FLOWMAP }
447
448             ANCHOR:
449               match: cb_anchor
450               WS: { new: NEWFLOWMAP_ANCHOR_SPC }
451               EOL: { new: NEWFLOWMAP_ANCHOR_SPC }
452               DEFAULT: { new: NEWFLOWMAP_ANCHOR }
453             TAG:
454               match: cb_tag
455               WS: { new: NEWFLOWMAP_TAG_SPC }
456               EOL: { new: NEWFLOWMAP_TAG_SPC }
457               DEFAULT: { new: NEWFLOWMAP_TAG }
458
459             FLOWMAP_END:
460               match: cb_end_flowmap
461               return: 1
462
463             COLON:
464               WS:
465                 match: cb_empty_flow_mapkey
466                 new: RULE_FULLFLOWSCALAR
467               EOL:
468                 match: cb_empty_flow_mapkey
469                 new: RULE_FULLFLOWSCALAR
470
471             DEFAULT: { new: FLOWMAP_CONTENT }
472
473           NODETYPE_FLOWMAP:
474             EOL: { new: NODETYPE_FLOWMAP }
475             WS: { new: NODETYPE_FLOWMAP }
476             FLOWMAP_END:
477               match: cb_end_flowmap
478               return: 1
479             FLOW_COMMA: { match: cb_flow_comma, new: NEWFLOWMAP }
480             DEFAULT: { new: NEWFLOWMAP }
481
482           END_FLOW:
483             EOL:
484               match: cb_end_outer_flow
485               return: 1
486
487           RULE_MAPKEY:
488             QUESTION:
489               match: cb_question
490               EOL: { new: FULLNODE }
491               WS: { new: FULLNODE }
492             ALIAS:
493               match: cb_send_alias_key
494               WS:
495                 COLON:
496                   EOL: { new: FULLNODE }
497                   WS: { new: FULLMAPVALUE_INLINE }
498
499             QUOTED:
500               match: cb_take_quoted_key
501               WS:
502                 COLON:
503                   EOL: { new: FULLNODE }
504                   WS: { new: FULLMAPVALUE_INLINE }
505               COLON:
506                 EOL: { new: FULLNODE }
507                 WS: { new: FULLMAPVALUE_INLINE }
508
509             PLAIN:
510               match: cb_mapkey
511               WS:
512                 COLON:
513                   match: cb_send_mapkey
514                   EOL: { new: FULLNODE }
515                   WS: { new: FULLMAPVALUE_INLINE }
516               COLON:
517                 match: cb_send_mapkey
518                 EOL: { new: FULLNODE }
519                 WS: { new: FULLMAPVALUE_INLINE }
520
521             COLON:
522               match: cb_empty_mapkey
523               EOL: { new: FULLNODE }
524               WS: { new: FULLMAPVALUE_INLINE }
525
526             DOC_END:
527               match: cb_end_document
528               EOL: { }
529
530             DOC_START:
531               match: cb_end_doc_start_document
532               EOL: { new: FULLNODE }
533               WS: { new: FULLNODE }
534
535             EOL:
536               new: RULE_MAPKEY
537
538
539           NODETYPE_SEQ:
540             DASH:
541               match: cb_seqitem
542               EOL: { new: FULLNODE }
543               WS: { new: FULLNODE }
544             DOC_END:
545               match: cb_end_document
546               EOL: { }
547             DOC_START:
548               match: cb_end_doc_start_document
549               EOL: { new: FULLNODE }
550               WS: { new: FULLNODE }
551
552             EOL:
553               new: NODETYPE_SEQ
554
555           NODETYPE_MAP:
556             ANCHOR:
557               match: cb_anchor
558               WS:
559                 TAG:
560                   match: cb_tag
561                   WS: { new: RULE_MAPKEY  }
562                 DEFAULT: { new: RULE_MAPKEY }
563             TAG:
564               match: cb_tag
565               WS:
566                 ANCHOR:
567                   match: cb_anchor
568                   WS: { new: RULE_MAPKEY  }
569                 DEFAULT: { new: RULE_MAPKEY }
570             DEFAULT: { new: RULE_MAPKEY }
571
572           FULLNODE_ANCHOR:
573             TAG:
574               match: cb_tag
575               EOL: { match: cb_property_eol, new: FULLNODE_TAG_ANCHOR }
576               WS:
577                 ANCHOR:
578                   match: cb_anchor
579                   WS: { new: NODETYPE_SCALAR_OR_MAP  }
580                 DEFAULT: { new: NODETYPE_SCALAR_OR_MAP }
581             ANCHOR:
582               match: cb_anchor
583               WS:
584                 TAG:
585                   match: cb_tag
586                   WS: { new: NODETYPE_SCALAR_OR_MAP  }
587                 DEFAULT: { new: NODETYPE_SCALAR_OR_MAP }
588             EOL: { new: FULLNODE_ANCHOR }
589             DEFAULT: { new: NODETYPE_NODE }
590
591           FULLNODE_TAG:
592             ANCHOR:
593               match: cb_anchor
594               EOL: { match: cb_property_eol, new: FULLNODE_TAG_ANCHOR }
595               WS:
596                 TAG:
597                   match: cb_tag
598                   WS: { new: NODETYPE_SCALAR_OR_MAP  }
599                 DEFAULT: { new: NODETYPE_SCALAR_OR_MAP, }
600             TAG:
601               match: cb_tag
602               WS:
603                 ANCHOR:
604                   match: cb_anchor
605                   WS: { new: NODETYPE_SCALAR_OR_MAP  }
606                 DEFAULT: { new: NODETYPE_SCALAR_OR_MAP }
607             EOL: { new: FULLNODE_TAG }
608             DEFAULT: { new: NODETYPE_NODE }
609
610           FULLNODE_TAG_ANCHOR:
611             ANCHOR:
612               match: cb_anchor
613               WS:
614                 TAG:
615                   match: cb_tag
616                   WS: { new: NODETYPE_SCALAR_OR_MAP  }
617                 DEFAULT: { new: NODETYPE_SCALAR_OR_MAP }
618             TAG:
619               match: cb_tag
620               WS:
621                 ANCHOR:
622                   match: cb_anchor
623                   WS: { new: NODETYPE_SCALAR_OR_MAP  }
624                 DEFAULT: { new: NODETYPE_SCALAR_OR_MAP }
625             EOL: { new: FULLNODE_TAG_ANCHOR }
626             DEFAULT: { new: NODETYPE_NODE }
627
628           FULLNODE:
629             ANCHOR:
630               match: cb_anchor
631               EOL: { match: cb_property_eol, new: FULLNODE_ANCHOR }
632               WS:
633                 TAG:
634                   match: cb_tag
635                   EOL: { match: cb_property_eol, new: FULLNODE_TAG_ANCHOR }
636                   WS: { new: NODETYPE_SCALAR_OR_MAP  }
637                 DEFAULT: { new: NODETYPE_SCALAR_OR_MAP }
638             TAG:
639               match: cb_tag
640               EOL: { match: cb_property_eol, new: FULLNODE_TAG }
641               WS:
642                 ANCHOR:
643                   match: cb_anchor
644                   EOL: { match: cb_property_eol, new: FULLNODE_TAG_ANCHOR }
645                   WS: { new: NODETYPE_SCALAR_OR_MAP  }
646                 DEFAULT: { new: NODETYPE_SCALAR_OR_MAP }
647             EOL: { new: FULLNODE }
648             DEFAULT: { new: NODETYPE_NODE }
649
650           FULLMAPVALUE_INLINE:
651             ANCHOR:
652               match: cb_anchor
653               EOL: { match: cb_property_eol, new: FULLNODE_ANCHOR }
654               WS:
655                 TAG:
656                   match: cb_tag
657                   EOL: { match: cb_property_eol, new: FULLNODE_TAG_ANCHOR }
658                   WS: { new: NODETYPE_MAPVALUE_INLINE  }
659                 DEFAULT: { new: NODETYPE_MAPVALUE_INLINE }
660             TAG:
661               match: cb_tag
662               EOL: { match: cb_property_eol, new: FULLNODE_TAG }
663               WS:
664                 ANCHOR:
665                   match: cb_anchor
666                   EOL: { match: cb_property_eol, new: FULLNODE_TAG_ANCHOR }
667                   WS: { new: NODETYPE_MAPVALUE_INLINE  }
668                 DEFAULT: { new: NODETYPE_MAPVALUE_INLINE }
669             DEFAULT: { new: NODETYPE_MAPVALUE_INLINE }
670
671
672           NODETYPE_MAPVALUE_INLINE:
673             ALIAS:
674               match: cb_send_alias
675               EOL: { }
676
677             QUOTED:
678               match: cb_take_quoted
679               EOL: { match: cb_send_scalar }
680
681             QUOTED_MULTILINE:
682               match: cb_quoted_multiline
683               EOL: { }
684
685             PLAIN:
686               match: cb_start_plain
687               EOL:
688                 match: cb_send_scalar
689
690             PLAIN_MULTI:
691               match: cb_send_plain_multi
692               EOL: { }
693
694             BLOCK_SCALAR:
695               match: cb_send_block_scalar
696               EOL: { }
697
698             FLOWSEQ_START:
699               match: cb_start_flowseq
700               new: NEWFLOWSEQ
701
702             FLOWMAP_START:
703               match: cb_start_flowmap
704               new: NEWFLOWMAP
705
706             DOC_END:
707               match: cb_end_document
708               EOL: { }
709
710
711           DOCUMENT_END:
712             DOC_END:
713               match: cb_end_document
714               EOL: { }
715             DOC_START:
716               match: cb_end_doc_start_document
717               EOL: { new: FULLNODE }
718               WS: { new: FULLNODE }
719
720             EOL:
721               new: DOCUMENT_END
722
723
724           STREAM:
725
726             DOC_END:
727               match: cb_end_document_empty
728               EOL: {  }
729             DOC_START:
730               match: cb_doc_start_explicit
731               EOL: { new: FULLNODE }
732               WS: { new: FULLNODE }
733             YAML_DIRECTIVE:
734               match: cb_set_yaml_version_directive
735               EOL: { new: DIRECTIVE }
736               WS: { new: DIRECTIVE }
737             RESERVED_DIRECTIVE:
738               match: cb_reserved_directive
739               EOL: { new: DIRECTIVE }
740               WS: { new: DIRECTIVE }
741             TAG_DIRECTIVE:
742               match: cb_tag_directive
743               EOL: { new: DIRECTIVE }
744               WS: { new: DIRECTIVE }
745
746             EOL:
747               new: STREAM
748
749             DEFAULT:
750               match: cb_doc_start_implicit
751               new: FULLNODE
752
753           DIRECTIVE:
754             DOC_START:
755               match: cb_doc_start_explicit
756               EOL: { new: FULLNODE }
757               WS: { new: FULLNODE }
758
759             YAML_DIRECTIVE:
760               match: cb_set_yaml_version_directive
761               EOL: { new: DIRECTIVE }
762               WS: { new: DIRECTIVE }
763             RESERVED_DIRECTIVE:
764               match: cb_reserved_directive
765               EOL: { new: DIRECTIVE }
766               WS: { new: DIRECTIVE }
767             TAG_DIRECTIVE:
768               match: cb_tag_directive
769               EOL: { new: DIRECTIVE }
770               WS: { new: DIRECTIVE }
771
772             EOL:
773               new: DIRECTIVE
774
775
776           # END OF YAML INLINE
777
778
779
780perl v5.38.0                      2023-07-21              YAML::PP::Grammar(3)
Impressum