/usr/share/doc/libopentoken-doc/examples/wisi/test/empty_production_3.good_parse_table is in libopentoken-doc 6.0b-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | Tokens:
1 => WHITESPACE_ID
2 => IN_ID
3 => IDENTIFIER_ID
4 => EOF_ID
5 => COMPILATION_UNIT_ID
6 => MODE_ID
7 => NAME_ID
8 => PARAMETER_SPECIFICATION_ID
9 => OPENTOKEN_ACCEPT_ID
Parse Table:
State 1:
OPENTOKEN_ACCEPT_ID <= ^ COMPILATION_UNIT_ID EOF_ID
IDENTIFIER_ID => shift and goto state 2
default => ERROR
COMPILATION_UNIT_ID goto state 3
PARAMETER_SPECIFICATION_ID goto state 4
State 2:
PARAMETER_SPECIFICATION_ID <= IDENTIFIER_ID ^ MODE_ID NAME_ID, EOF_ID/IDENTIFIER_ID
IDENTIFIER_ID => reduce 0 tokens to MODE_ID
IN_ID => shift and goto state 7
default => ERROR
MODE_ID goto state 8
State 3:
OPENTOKEN_ACCEPT_ID <= COMPILATION_UNIT_ID ^ EOF_ID
EOF_ID => shift and goto state 6
default => ERROR
State 4:
COMPILATION_UNIT_ID <= PARAMETER_SPECIFICATION_ID ^ PARAMETER_SPECIFICATION_ID, EOF_ID
IDENTIFIER_ID => shift and goto state 2
default => ERROR
PARAMETER_SPECIFICATION_ID goto state 5
State 5:
COMPILATION_UNIT_ID <= PARAMETER_SPECIFICATION_ID PARAMETER_SPECIFICATION_ID ^, EOF_ID
EOF_ID => reduce 2 tokens to COMPILATION_UNIT_ID
default => ERROR
State 6:
OPENTOKEN_ACCEPT_ID <= COMPILATION_UNIT_ID EOF_ID ^, EOF_ID/IDENTIFIER_ID/IN_ID
EOF_ID => accept it
IDENTIFIER_ID => accept it
IN_ID => accept it
default => ERROR
State 7:
MODE_ID <= IN_ID ^, IDENTIFIER_ID
IDENTIFIER_ID => reduce 1 tokens to MODE_ID
default => ERROR
State 8:
PARAMETER_SPECIFICATION_ID <= IDENTIFIER_ID MODE_ID ^ NAME_ID, EOF_ID/IDENTIFIER_ID
IDENTIFIER_ID => shift and goto state 9
default => ERROR
NAME_ID goto state 10
State 9:
NAME_ID <= IDENTIFIER_ID ^, EOF_ID/IDENTIFIER_ID
EOF_ID => reduce 1 tokens to NAME_ID
IDENTIFIER_ID => reduce 1 tokens to NAME_ID
default => ERROR
State 10:
PARAMETER_SPECIFICATION_ID <= IDENTIFIER_ID MODE_ID NAME_ID ^, EOF_ID/IDENTIFIER_ID
EOF_ID => reduce 3 tokens to PARAMETER_SPECIFICATION_ID
IDENTIFIER_ID => reduce 3 tokens to PARAMETER_SPECIFICATION_ID
default => ERROR
4 rules, 1 actions, 0 shift/reduce conflicts, 0 reduce/reduce conflicts, 10 states, 25 table entries
|