Skip to content

Commit 24498ae

Browse files
committed
commit generated files
1 parent 87525af commit 24498ae

File tree

3 files changed

+2639
-2348
lines changed

3 files changed

+2639
-2348
lines changed

src/grammar.json

Lines changed: 132 additions & 166 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@
1919
{
2020
"type": "SYMBOL",
2121
"name": "block"
22-
},
23-
{
24-
"type": "SYMBOL",
25-
"name": "h1"
26-
},
27-
{
28-
"type": "SYMBOL",
29-
"name": "h2"
30-
},
31-
{
32-
"type": "SYMBOL",
33-
"name": "h3"
3422
}
3523
]
3624
}
@@ -233,116 +221,120 @@
233221
}
234222
},
235223
"block": {
236-
"type": "PREC_RIGHT",
237-
"value": 0,
238-
"content": {
239-
"type": "SEQ",
240-
"members": [
241-
{
242-
"type": "REPEAT1",
243-
"content": {
244-
"type": "CHOICE",
245-
"members": [
246-
{
247-
"type": "SYMBOL",
248-
"name": "line"
249-
},
250-
{
251-
"type": "SYMBOL",
252-
"name": "line_li"
253-
}
254-
]
255-
}
256-
},
257-
{
258-
"type": "REPEAT1",
259-
"content": {
260-
"type": "FIELD",
261-
"name": "blank",
262-
"content": {
263-
"type": "PATTERN",
264-
"value": "[\\t ]*\\n"
265-
}
266-
}
267-
}
268-
]
269-
}
270-
},
271-
"block_end": {
272-
"type": "PREC_RIGHT",
273-
"value": 0,
274-
"content": {
275-
"type": "CHOICE",
276-
"members": [
277-
{
224+
"type": "SEQ",
225+
"members": [
226+
{
227+
"type": "REPEAT1",
228+
"content": {
278229
"type": "CHOICE",
279230
"members": [
280231
{
281-
"type": "ALIAS",
282-
"content": {
283-
"type": "SYMBOL",
284-
"name": "line_noeol"
285-
},
286-
"named": true,
287-
"value": "line"
232+
"type": "SYMBOL",
233+
"name": "line"
288234
},
289235
{
290-
"type": "ALIAS",
291-
"content": {
292-
"type": "SYMBOL",
293-
"name": "line_li_noeol"
294-
},
295-
"named": true,
296-
"value": "line_li"
236+
"type": "SYMBOL",
237+
"name": "line_li"
297238
}
298239
]
299-
},
300-
{
301-
"type": "SEQ",
302-
"members": [
303-
{
304-
"type": "REPEAT1",
305-
"content": {
306-
"type": "CHOICE",
307-
"members": [
308-
{
309-
"type": "SYMBOL",
310-
"name": "line"
311-
},
312-
{
313-
"type": "SYMBOL",
314-
"name": "line_li"
315-
}
316-
]
317-
}
240+
}
241+
},
242+
{
243+
"type": "CHOICE",
244+
"members": [
245+
{
246+
"type": "IMMEDIATE_TOKEN",
247+
"content": {
248+
"type": "STRING",
249+
"value": "<"
250+
}
251+
},
252+
{
253+
"type": "SYMBOL",
254+
"name": "_blank"
255+
}
256+
]
257+
},
258+
{
259+
"type": "REPEAT",
260+
"content": {
261+
"type": "SYMBOL",
262+
"name": "_blank"
263+
}
264+
}
265+
]
266+
},
267+
"block_end": {
268+
"type": "CHOICE",
269+
"members": [
270+
{
271+
"type": "CHOICE",
272+
"members": [
273+
{
274+
"type": "ALIAS",
275+
"content": {
276+
"type": "SYMBOL",
277+
"name": "line_noeol"
318278
},
319-
{
279+
"named": true,
280+
"value": "line"
281+
},
282+
{
283+
"type": "ALIAS",
284+
"content": {
285+
"type": "SYMBOL",
286+
"name": "line_li_noeol"
287+
},
288+
"named": true,
289+
"value": "line_li"
290+
}
291+
]
292+
},
293+
{
294+
"type": "SEQ",
295+
"members": [
296+
{
297+
"type": "REPEAT1",
298+
"content": {
320299
"type": "CHOICE",
321300
"members": [
322301
{
323-
"type": "ALIAS",
324-
"content": {
325-
"type": "SYMBOL",
326-
"name": "line_noeol"
327-
},
328-
"named": true,
329-
"value": "line"
302+
"type": "SYMBOL",
303+
"name": "line"
330304
},
331305
{
332-
"type": "ALIAS",
333-
"content": {
334-
"type": "SYMBOL",
335-
"name": "line_li_noeol"
336-
},
337-
"named": true,
338-
"value": "line_li"
306+
"type": "SYMBOL",
307+
"name": "line_li"
339308
}
340309
]
341310
}
342-
]
343-
}
344-
]
345-
}
311+
},
312+
{
313+
"type": "CHOICE",
314+
"members": [
315+
{
316+
"type": "ALIAS",
317+
"content": {
318+
"type": "SYMBOL",
319+
"name": "line_noeol"
320+
},
321+
"named": true,
322+
"value": "line"
323+
},
324+
{
325+
"type": "ALIAS",
326+
"content": {
327+
"type": "SYMBOL",
328+
"name": "line_li_noeol"
329+
},
330+
"named": true,
331+
"value": "line_li"
332+
}
333+
]
334+
}
335+
]
336+
}
337+
]
346338
},
347339
"codeblock": {
348340
"type": "PREC_RIGHT",
@@ -365,33 +357,37 @@
365357
"named": true,
366358
"value": "line"
367359
}
368-
},
369-
{
370-
"type": "IMMEDIATE_TOKEN",
371-
"content": {
372-
"type": "CHOICE",
373-
"members": [
374-
{
375-
"type": "PATTERN",
376-
"value": "<[\\t ]*\\n"
377-
},
378-
{
379-
"type": "PATTERN",
380-
"value": "[^\\t\\n ]"
381-
}
382-
]
383-
}
384360
}
385361
]
386362
}
387363
},
364+
"_blank": {
365+
"type": "FIELD",
366+
"name": "blank",
367+
"content": {
368+
"type": "PATTERN",
369+
"value": "[\\t ]*\\n"
370+
}
371+
},
388372
"line": {
389373
"type": "CHOICE",
390374
"members": [
391375
{
392376
"type": "SYMBOL",
393377
"name": "column_heading"
394378
},
379+
{
380+
"type": "SYMBOL",
381+
"name": "h1"
382+
},
383+
{
384+
"type": "SYMBOL",
385+
"name": "h2"
386+
},
387+
{
388+
"type": "SYMBOL",
389+
"name": "h3"
390+
},
395391
{
396392
"type": "SEQ",
397393
"members": [
@@ -466,6 +462,18 @@
466462
"type": "SYMBOL",
467463
"name": "column_heading"
468464
},
465+
{
466+
"type": "SYMBOL",
467+
"name": "h1"
468+
},
469+
{
470+
"type": "SYMBOL",
471+
"name": "h2"
472+
},
473+
{
474+
"type": "SYMBOL",
475+
"name": "h3"
476+
},
469477
{
470478
"type": "SEQ",
471479
"members": [
@@ -585,17 +593,8 @@
585593
"value": "\n"
586594
},
587595
{
588-
"type": "SEQ",
589-
"members": [
590-
{
591-
"type": "PATTERN",
592-
"value": "[\\t ]+[^\\n]+"
593-
},
594-
{
595-
"type": "PATTERN",
596-
"value": "\\n"
597-
}
598-
]
596+
"type": "PATTERN",
597+
"value": "[\\t ]+[^\\n]+\\n"
599598
}
600599
]
601600
},
@@ -652,17 +651,6 @@
652651
{
653652
"type": "STRING",
654653
"value": "\n"
655-
},
656-
{
657-
"type": "REPEAT",
658-
"content": {
659-
"type": "FIELD",
660-
"name": "blank",
661-
"content": {
662-
"type": "PATTERN",
663-
"value": "[\\t ]*\\n"
664-
}
665-
}
666654
}
667655
]
668656
},
@@ -690,17 +678,6 @@
690678
{
691679
"type": "STRING",
692680
"value": "\n"
693-
},
694-
{
695-
"type": "REPEAT",
696-
"content": {
697-
"type": "FIELD",
698-
"name": "blank",
699-
"content": {
700-
"type": "PATTERN",
701-
"value": "[\\t ]*\\n"
702-
}
703-
}
704681
}
705682
]
706683
},
@@ -725,17 +702,6 @@
725702
{
726703
"type": "STRING",
727704
"value": "\n"
728-
},
729-
{
730-
"type": "REPEAT",
731-
"content": {
732-
"type": "FIELD",
733-
"name": "blank",
734-
"content": {
735-
"type": "PATTERN",
736-
"value": "[\\t ]*\\n"
737-
}
738-
}
739705
}
740706
]
741707
},

0 commit comments

Comments
 (0)