tinycobol/compiler/pp_parser.output

718 lines
14 KiB
Plaintext

Terminals unused in grammar
TOK_MISC
Grammar
0 $accept: root $end
1 root: statements
2 | ε
3 statements: statement
4 | statements statement
5 $@1: ε
6 statement: TOK_SOURCE_COMPUTER TOK_PERIOD $@1 identifier_debug_mode_opt
7 $@2: ε
8 statement: TOK_COPY $@2 copy_statement TOK_PERIOD
9 | TOK_REPLACE replace_statement TOK_PERIOD
10 | TOK_REPLACE TOK_OFF TOK_PERIOD
11 | TOK_MODE
12 | TOK_WITH
13 | error
14 $@3: ε
15 copy_statement: name library_name_opt $@3 TOK_REPLACING replacing_statement
16 | name library_name_opt
17 replacing_statement: replacing_statements
18 | replacing_statements replacing_statement
19 replacing_statements: replacing_text TOK_BY replacing_text comma_delimiter_opt
20 replacing_text: pseudo_text
21 | identifier
22 | literal
23 | word
24 library_name_opt: of_in name
25 | ε
26 replace_statement: replace_statements
27 | replace_statements replace_statement
28 replace_statements: pseudo_text TOK_BY pseudo_text comma_delimiter_opt
29 name: literal
30 | identifier
31 pseudo_text: TOK_PSEUDO_TEXT
32 identifier: TOK_IDENTIFIER
33 literal: TOK_LITERAL
34 word: TOK_WORD
35 of_in: TOK_OF
36 | TOK_IN
37 comma_delimiter_opt: TOK_COMMA
38 | ε
39 identifier_debug_mode_opt: identifier debugging_mode_opt TOK_PERIOD
40 | ε
41 debugging_mode_opt: with_opt TOK_DEBUGGING TOK_MODE
42 | ε
43 with_opt: TOK_WITH
44 | ε
Terminals, with rules where they appear
$end (0) 0
error (256) 13
TOK_PSEUDO_TEXT <str> (258) 31
TOK_IDENTIFIER <str> (259) 32
TOK_LITERAL <str> (260) 33
TOK_WORD <str> (261) 34
TOK_COPY (262) 8
TOK_PERIOD (263) 6 8 9 10 39
TOK_OFF (264) 10
TOK_BY (265) 19 28
TOK_OF (266) 35
TOK_IN (267) 36
TOK_REPLACING (268) 15
TOK_REPLACE (269) 9 10
TOK_MISC (270)
TOK_COMMA (271) 37
TOK_SOURCE_COMPUTER (272) 6
TOK_WITH (273) 12 43
TOK_DEBUGGING (274) 41
TOK_MODE (275) 11 41
Nonterminals, with rules where they appear
$accept (21)
on left: 0
root (22)
on left: 1 2
on right: 0
statements (23)
on left: 3 4
on right: 1 4
statement (24)
on left: 6 8 9 10 11 12 13
on right: 3 4
$@1 (25)
on left: 5
on right: 6
$@2 (26)
on left: 7
on right: 8
copy_statement (27)
on left: 15 16
on right: 8
$@3 (28)
on left: 14
on right: 15
replacing_statement (29)
on left: 17 18
on right: 15 18
replacing_statements (30)
on left: 19
on right: 17 18
replacing_text <str> (31)
on left: 20 21 22 23
on right: 19
library_name_opt <str> (32)
on left: 24 25
on right: 15 16
replace_statement (33)
on left: 26 27
on right: 9 27
replace_statements (34)
on left: 28
on right: 26 27
name <str> (35)
on left: 29 30
on right: 15 16 24
pseudo_text <str> (36)
on left: 31
on right: 20 28
identifier <str> (37)
on left: 32
on right: 21 30 39
literal <str> (38)
on left: 33
on right: 22 29
word <str> (39)
on left: 34
on right: 23
of_in (40)
on left: 35 36
on right: 24
comma_delimiter_opt (41)
on left: 37 38
on right: 19 28
identifier_debug_mode_opt (42)
on left: 39 40
on right: 6
debugging_mode_opt (43)
on left: 41 42
on right: 39
with_opt (44)
on left: 43 44
on right: 41
State 0
0 $accept: • root $end
error shift, and go to state 1
TOK_COPY shift, and go to state 2
TOK_REPLACE shift, and go to state 3
TOK_SOURCE_COMPUTER shift, and go to state 4
TOK_WITH shift, and go to state 5
TOK_MODE shift, and go to state 6
$end reduce using rule 2 (root)
root go to state 7
statements go to state 8
statement go to state 9
State 1
13 statement: error •
$default reduce using rule 13 (statement)
State 2
8 statement: TOK_COPY • $@2 copy_statement TOK_PERIOD
$default reduce using rule 7 ($@2)
$@2 go to state 10
State 3
9 statement: TOK_REPLACE • replace_statement TOK_PERIOD
10 | TOK_REPLACE • TOK_OFF TOK_PERIOD
TOK_PSEUDO_TEXT shift, and go to state 11
TOK_OFF shift, and go to state 12
replace_statement go to state 13
replace_statements go to state 14
pseudo_text go to state 15
State 4
6 statement: TOK_SOURCE_COMPUTER • TOK_PERIOD $@1 identifier_debug_mode_opt
TOK_PERIOD shift, and go to state 16
State 5
12 statement: TOK_WITH •
$default reduce using rule 12 (statement)
State 6
11 statement: TOK_MODE •
$default reduce using rule 11 (statement)
State 7
0 $accept: root • $end
$end shift, and go to state 17
State 8
1 root: statements •
4 statements: statements • statement
error shift, and go to state 1
TOK_COPY shift, and go to state 2
TOK_REPLACE shift, and go to state 3
TOK_SOURCE_COMPUTER shift, and go to state 4
TOK_WITH shift, and go to state 5
TOK_MODE shift, and go to state 6
$end reduce using rule 1 (root)
statement go to state 18
State 9
3 statements: statement •
$default reduce using rule 3 (statements)
State 10
8 statement: TOK_COPY $@2 • copy_statement TOK_PERIOD
TOK_IDENTIFIER shift, and go to state 19
TOK_LITERAL shift, and go to state 20
copy_statement go to state 21
name go to state 22
identifier go to state 23
literal go to state 24
State 11
31 pseudo_text: TOK_PSEUDO_TEXT •
$default reduce using rule 31 (pseudo_text)
State 12
10 statement: TOK_REPLACE TOK_OFF • TOK_PERIOD
TOK_PERIOD shift, and go to state 25
State 13
9 statement: TOK_REPLACE replace_statement • TOK_PERIOD
TOK_PERIOD shift, and go to state 26
State 14
26 replace_statement: replace_statements •
27 | replace_statements • replace_statement
TOK_PSEUDO_TEXT shift, and go to state 11
$default reduce using rule 26 (replace_statement)
replace_statement go to state 27
replace_statements go to state 14
pseudo_text go to state 15
State 15
28 replace_statements: pseudo_text • TOK_BY pseudo_text comma_delimiter_opt
TOK_BY shift, and go to state 28
State 16
6 statement: TOK_SOURCE_COMPUTER TOK_PERIOD • $@1 identifier_debug_mode_opt
$default reduce using rule 5 ($@1)
$@1 go to state 29
State 17
0 $accept: root $end •
$default accept
State 18
4 statements: statements statement •
$default reduce using rule 4 (statements)
State 19
32 identifier: TOK_IDENTIFIER •
$default reduce using rule 32 (identifier)
State 20
33 literal: TOK_LITERAL •
$default reduce using rule 33 (literal)
State 21
8 statement: TOK_COPY $@2 copy_statement • TOK_PERIOD
TOK_PERIOD shift, and go to state 30
State 22
15 copy_statement: name • library_name_opt $@3 TOK_REPLACING replacing_statement
16 | name • library_name_opt
TOK_OF shift, and go to state 31
TOK_IN shift, and go to state 32
$default reduce using rule 25 (library_name_opt)
library_name_opt go to state 33
of_in go to state 34
State 23
30 name: identifier •
$default reduce using rule 30 (name)
State 24
29 name: literal •
$default reduce using rule 29 (name)
State 25
10 statement: TOK_REPLACE TOK_OFF TOK_PERIOD •
$default reduce using rule 10 (statement)
State 26
9 statement: TOK_REPLACE replace_statement TOK_PERIOD •
$default reduce using rule 9 (statement)
State 27
27 replace_statement: replace_statements replace_statement •
$default reduce using rule 27 (replace_statement)
State 28
28 replace_statements: pseudo_text TOK_BY • pseudo_text comma_delimiter_opt
TOK_PSEUDO_TEXT shift, and go to state 11
pseudo_text go to state 35
State 29
6 statement: TOK_SOURCE_COMPUTER TOK_PERIOD $@1 • identifier_debug_mode_opt
TOK_IDENTIFIER shift, and go to state 19
$default reduce using rule 40 (identifier_debug_mode_opt)
identifier go to state 36
identifier_debug_mode_opt go to state 37
State 30
8 statement: TOK_COPY $@2 copy_statement TOK_PERIOD •
$default reduce using rule 8 (statement)
State 31
35 of_in: TOK_OF •
$default reduce using rule 35 (of_in)
State 32
36 of_in: TOK_IN •
$default reduce using rule 36 (of_in)
State 33
15 copy_statement: name library_name_opt • $@3 TOK_REPLACING replacing_statement
16 | name library_name_opt •
TOK_PERIOD reduce using rule 16 (copy_statement)
$default reduce using rule 14 ($@3)
$@3 go to state 38
State 34
24 library_name_opt: of_in • name
TOK_IDENTIFIER shift, and go to state 19
TOK_LITERAL shift, and go to state 20
name go to state 39
identifier go to state 23
literal go to state 24
State 35
28 replace_statements: pseudo_text TOK_BY pseudo_text • comma_delimiter_opt
TOK_COMMA shift, and go to state 40
$default reduce using rule 38 (comma_delimiter_opt)
comma_delimiter_opt go to state 41
State 36
39 identifier_debug_mode_opt: identifier • debugging_mode_opt TOK_PERIOD
TOK_WITH shift, and go to state 42
TOK_DEBUGGING reduce using rule 44 (with_opt)
$default reduce using rule 42 (debugging_mode_opt)
debugging_mode_opt go to state 43
with_opt go to state 44
State 37
6 statement: TOK_SOURCE_COMPUTER TOK_PERIOD $@1 identifier_debug_mode_opt •
$default reduce using rule 6 (statement)
State 38
15 copy_statement: name library_name_opt $@3 • TOK_REPLACING replacing_statement
TOK_REPLACING shift, and go to state 45
State 39
24 library_name_opt: of_in name •
$default reduce using rule 24 (library_name_opt)
State 40
37 comma_delimiter_opt: TOK_COMMA •
$default reduce using rule 37 (comma_delimiter_opt)
State 41
28 replace_statements: pseudo_text TOK_BY pseudo_text comma_delimiter_opt •
$default reduce using rule 28 (replace_statements)
State 42
43 with_opt: TOK_WITH •
$default reduce using rule 43 (with_opt)
State 43
39 identifier_debug_mode_opt: identifier debugging_mode_opt • TOK_PERIOD
TOK_PERIOD shift, and go to state 46
State 44
41 debugging_mode_opt: with_opt • TOK_DEBUGGING TOK_MODE
TOK_DEBUGGING shift, and go to state 47
State 45
15 copy_statement: name library_name_opt $@3 TOK_REPLACING • replacing_statement
TOK_PSEUDO_TEXT shift, and go to state 11
TOK_IDENTIFIER shift, and go to state 19
TOK_LITERAL shift, and go to state 20
TOK_WORD shift, and go to state 48
replacing_statement go to state 49
replacing_statements go to state 50
replacing_text go to state 51
pseudo_text go to state 52
identifier go to state 53
literal go to state 54
word go to state 55
State 46
39 identifier_debug_mode_opt: identifier debugging_mode_opt TOK_PERIOD •
$default reduce using rule 39 (identifier_debug_mode_opt)
State 47
41 debugging_mode_opt: with_opt TOK_DEBUGGING • TOK_MODE
TOK_MODE shift, and go to state 56
State 48
34 word: TOK_WORD •
$default reduce using rule 34 (word)
State 49
15 copy_statement: name library_name_opt $@3 TOK_REPLACING replacing_statement •
$default reduce using rule 15 (copy_statement)
State 50
17 replacing_statement: replacing_statements •
18 | replacing_statements • replacing_statement
TOK_PSEUDO_TEXT shift, and go to state 11
TOK_IDENTIFIER shift, and go to state 19
TOK_LITERAL shift, and go to state 20
TOK_WORD shift, and go to state 48
$default reduce using rule 17 (replacing_statement)
replacing_statement go to state 57
replacing_statements go to state 50
replacing_text go to state 51
pseudo_text go to state 52
identifier go to state 53
literal go to state 54
word go to state 55
State 51
19 replacing_statements: replacing_text • TOK_BY replacing_text comma_delimiter_opt
TOK_BY shift, and go to state 58
State 52
20 replacing_text: pseudo_text •
$default reduce using rule 20 (replacing_text)
State 53
21 replacing_text: identifier •
$default reduce using rule 21 (replacing_text)
State 54
22 replacing_text: literal •
$default reduce using rule 22 (replacing_text)
State 55
23 replacing_text: word •
$default reduce using rule 23 (replacing_text)
State 56
41 debugging_mode_opt: with_opt TOK_DEBUGGING TOK_MODE •
$default reduce using rule 41 (debugging_mode_opt)
State 57
18 replacing_statement: replacing_statements replacing_statement •
$default reduce using rule 18 (replacing_statement)
State 58
19 replacing_statements: replacing_text TOK_BY • replacing_text comma_delimiter_opt
TOK_PSEUDO_TEXT shift, and go to state 11
TOK_IDENTIFIER shift, and go to state 19
TOK_LITERAL shift, and go to state 20
TOK_WORD shift, and go to state 48
replacing_text go to state 59
pseudo_text go to state 52
identifier go to state 53
literal go to state 54
word go to state 55
State 59
19 replacing_statements: replacing_text TOK_BY replacing_text • comma_delimiter_opt
TOK_COMMA shift, and go to state 40
$default reduce using rule 38 (comma_delimiter_opt)
comma_delimiter_opt go to state 60
State 60
19 replacing_statements: replacing_text TOK_BY replacing_text comma_delimiter_opt •
$default reduce using rule 19 (replacing_statements)