tinycobol/compiler/pp_parser.output

695 lines
14 KiB
Plaintext

Terminals unused in grammar
TOK_MISC
Grammar
0 $accept: root $end
1 root: statements
2 | /* empty */
3 statements: statement
4 | statements statement
5 $@1: /* empty */
6 statement: TOK_SOURCE_COMPUTER TOK_PERIOD $@1 identifier_debug_mode_opt
7 $@2: /* empty */
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: /* empty */
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 | /* empty */
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 | /* empty */
39 identifier_debug_mode_opt: identifier debugging_mode_opt TOK_PERIOD
40 | /* empty */
41 debugging_mode_opt: with_opt TOK_DEBUGGING TOK_MODE
42 | /* empty */
43 with_opt: TOK_WITH
44 | /* empty */
Terminals, with rules where they appear
$end (0) 0
error (256) 13
TOK_PSEUDO_TEXT (258) 31
TOK_IDENTIFIER (259) 32
TOK_LITERAL (260) 33
TOK_WORD (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 (31)
on left: 20 21 22 23, on right: 19
library_name_opt (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 (35)
on left: 29 30, on right: 15 16 24
pseudo_text (36)
on left: 31, on right: 20 28
identifier (37)
on left: 32, on right: 21 30 39
literal (38)
on left: 33, on right: 22 29
word (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)