travis: add code generation checks for graph/formats/dot/...

This commit is contained in:
kortschak
2017-07-18 13:27:38 +09:30
committed by Dan Kortschak
parent 0b2b2ba860
commit 985e8b2155
9 changed files with 194 additions and 468 deletions

View File

@@ -19,6 +19,8 @@ before_install:
# Required for coverage. # Required for coverage.
- go get golang.org/x/tools/cmd/cover - go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls - go get github.com/mattn/goveralls
# Required for dot parser checks.
- go get github.com/goccmack/gocc
go_import_path: gonum.org/v1/gonum go_import_path: gonum.org/v1/gonum

View File

@@ -2,6 +2,7 @@
go generate gonum.org/v1/gonum/blas/gonum go generate gonum.org/v1/gonum/blas/gonum
go generate gonum.org/v1/gonum/unit go generate gonum.org/v1/gonum/unit
go generate gonum.org/v1/gonum/graph/formats/dot
if [ -n "$(git diff)" ]; then if [ -n "$(git diff)" ]; then
exit 1 exit 1
fi fi

View File

@@ -8,6 +8,8 @@
// This file is made available under a Creative Commons CC0 1.0 // This file is made available under a Creative Commons CC0 1.0
// Universal Public Domain Dedication. // Universal Public Domain Dedication.
//go:generate ./makeinternal.bash
// Package dot implements a parser for Graphviz DOT files. // Package dot implements a parser for Graphviz DOT files.
package dot // import "gonum.org/v1/gonum/graph/formats/dot" package dot // import "gonum.org/v1/gonum/graph/formats/dot"

View File

@@ -53,9 +53,7 @@ func NewLexerFile(fpath string) (*Lexer, error) {
} }
func (this *Lexer) Scan() (tok *token.Token) { func (this *Lexer) Scan() (tok *token.Token) {
// fmt.Printf("Lexer.Scan() pos=%d\n", this.pos) // fmt.Printf("Lexer.Scan() pos=%d\n", this.pos)
tok = new(token.Token) tok = new(token.Token)
if this.pos >= len(this.src) { if this.pos >= len(this.src) {
tok.Type = token.EOF tok.Type = token.EOF
@@ -66,16 +64,13 @@ func (this *Lexer) Scan() (tok *token.Token) {
tok.Type = token.INVALID tok.Type = token.INVALID
state, rune1, size := 0, rune(-1), 0 state, rune1, size := 0, rune(-1), 0
for state != -1 { for state != -1 {
// fmt.Printf("\tpos=%d, line=%d, col=%d, state=%d\n", this.pos, this.line, this.column, state) // fmt.Printf("\tpos=%d, line=%d, col=%d, state=%d\n", this.pos, this.line, this.column, state)
if this.pos >= len(this.src) { if this.pos >= len(this.src) {
rune1 = -1 rune1 = -1
} else { } else {
rune1, size = utf8.DecodeRune(this.src[this.pos:]) rune1, size = utf8.DecodeRune(this.src[this.pos:])
this.pos += size this.pos += size
} }
// Production start // Production start
if rune1 != -1 { if rune1 != -1 {
state = TransTab[state](rune1) state = TransTab[state](rune1)
@@ -138,7 +133,6 @@ func (this *Lexer) Scan() (tok *token.Token) {
tok.Lit = []byte{} tok.Lit = []byte{}
} }
tok.Pos.Offset, tok.Pos.Line, tok.Pos.Column = start, startLine, startColumn tok.Pos.Offset, tok.Pos.Line, tok.Pos.Column = start, startLine, startColumn
// fmt.Printf("Token at %s: %s \"%s\"\n", tok.String(), token.TokMap.Id(tok.Type), tok.Lit) // fmt.Printf("Token at %s: %s \"%s\"\n", tok.String(), token.TokMap.Id(tok.Type), tok.Lit)
return return
@@ -151,188 +145,371 @@ func (this *Lexer) Reset() {
/* /*
Lexer symbols: Lexer symbols:
0: 'n' 0: 'n'
1: 'o' 1: 'o'
2: 'd' 2: 'd'
3: 'e' 3: 'e'
4: 'N' 4: 'N'
5: 'o' 5: 'o'
6: 'd' 6: 'd'
7: 'e' 7: 'e'
8: 'N' 8: 'N'
9: 'O' 9: 'O'
10: 'D' 10: 'D'
11: 'E' 11: 'E'
12: 'e' 12: 'e'
13: 'd' 13: 'd'
14: 'g' 14: 'g'
15: 'e' 15: 'e'
16: 'E' 16: 'E'
17: 'd' 17: 'd'
18: 'g' 18: 'g'
19: 'e' 19: 'e'
20: 'E' 20: 'E'
21: 'D' 21: 'D'
22: 'G' 22: 'G'
23: 'E' 23: 'E'
24: 'g' 24: 'g'
25: 'r' 25: 'r'
26: 'a' 26: 'a'
27: 'p' 27: 'p'
28: 'h' 28: 'h'
29: 'G' 29: 'G'
30: 'r' 30: 'r'
31: 'a' 31: 'a'
32: 'p' 32: 'p'
33: 'h' 33: 'h'
34: 'G' 34: 'G'
35: 'R' 35: 'R'
36: 'A' 36: 'A'
37: 'P' 37: 'P'
38: 'H' 38: 'H'
39: 'd' 39: 'd'
40: 'i' 40: 'i'
41: 'g' 41: 'g'
42: 'r' 42: 'r'
43: 'a' 43: 'a'
44: 'p' 44: 'p'
45: 'h' 45: 'h'
46: 'D' 46: 'D'
47: 'i' 47: 'i'
48: 'g' 48: 'g'
49: 'r' 49: 'r'
50: 'a' 50: 'a'
51: 'p' 51: 'p'
52: 'h' 52: 'h'
53: 'd' 53: 'd'
54: 'i' 54: 'i'
55: 'G' 55: 'G'
56: 'r' 56: 'r'
57: 'a' 57: 'a'
58: 'p' 58: 'p'
59: 'h' 59: 'h'
60: 'D' 60: 'D'
61: 'i' 61: 'i'
62: 'G' 62: 'G'
63: 'r' 63: 'r'
64: 'a' 64: 'a'
65: 'p' 65: 'p'
66: 'h' 66: 'h'
67: 'D' 67: 'D'
68: 'I' 68: 'I'
69: 'G' 69: 'G'
70: 'R' 70: 'R'
71: 'A' 71: 'A'
72: 'P' 72: 'P'
73: 'H' 73: 'H'
74: 's' 74: 's'
75: 'u' 75: 'u'
76: 'b' 76: 'b'
77: 'g' 77: 'g'
78: 'r' 78: 'r'
79: 'a' 79: 'a'
80: 'p' 80: 'p'
81: 'h' 81: 'h'
82: 'S' 82: 'S'
83: 'u' 83: 'u'
84: 'b' 84: 'b'
85: 'g' 85: 'g'
86: 'r' 86: 'r'
87: 'a' 87: 'a'
88: 'p' 88: 'p'
89: 'h' 89: 'h'
90: 's' 90: 's'
91: 'u' 91: 'u'
92: 'b' 92: 'b'
93: 'G' 93: 'G'
94: 'r' 94: 'r'
95: 'a' 95: 'a'
96: 'p' 96: 'p'
97: 'h' 97: 'h'
98: 'S' 98: 'S'
99: 'u' 99: 'u'
100: 'b' 100: 'b'
101: 'G' 101: 'G'
102: 'r' 102: 'r'
103: 'a' 103: 'a'
104: 'p' 104: 'p'
105: 'h' 105: 'h'
106: 'S' 106: 'S'
107: 'U' 107: 'U'
108: 'B' 108: 'B'
109: 'G' 109: 'G'
110: 'R' 110: 'R'
111: 'A' 111: 'A'
112: 'P' 112: 'P'
113: 'H' 113: 'H'
114: 's' 114: 's'
115: 't' 115: 't'
116: 'r' 116: 'r'
117: 'i' 117: 'i'
118: 'c' 118: 'c'
119: 't' 119: 't'
120: 'S' 120: 'S'
121: 't' 121: 't'
122: 'r' 122: 'r'
123: 'i' 123: 'i'
124: 'c' 124: 'c'
125: 't' 125: 't'
126: 'S' 126: 'S'
127: 'T' 127: 'T'
128: 'R' 128: 'R'
129: 'I' 129: 'I'
130: 'C' 130: 'C'
131: 'T' 131: 'T'
132: '{' 132: '{'
133: '}' 133: '}'
134: ';' 134: ';'
135: '-' 135: '-'
136: '-' 136: '-'
137: '-' 137: '-'
138: '>' 138: '>'
139: '[' 139: '['
140: ']' 140: ']'
141: ',' 141: ','
142: '=' 142: '='
143: ':' 143: ':'
144: '_' 144: '_'
145: '-' 145: '-'
146: '.' 146: '.'
147: '-' 147: '-'
148: '.' 148: '.'
149: '\' 149: '\'
150: '"' 150: '"'
151: '\' 151: '\'
152: '"' 152: '"'
153: '"' 153: '"'
154: '=' 154: '='
155: '<' 155: '<'
156: '>' 156: '>'
157: '<' 157: '<'
158: '>' 158: '>'
159: '/' 159: '/'
160: '/' 160: '/'
161: '\n' 161: '\n'
162: '#' 162: '#'
163: '\n' 163: '\n'
164: '/' 164: '/'
165: '*' 165: '*'
166: '*' 166: '*'
167: '*' 167: '*'
168: '/' 168: '/'
169: ' ' 169: ' '
170: '\t' 170: '\t'
171: '\r' 171: '\r'
172: '\n' 172: '\n'
173: \u0001-'!' 173: \u0001-'!'
174: '#'-'[' 174: '#'-'['
175: ']'-\u007f 175: ']'-\u007f
176: 'a'-'z' 176: 'a'-'z'
177: 'A'-'Z' 177: 'A'-'Z'
178: '0'-'9' 178: '0'-'9'
179: \u0080-\ufffc 179: \u0080-\ufffc
180: \ufffe-\U0010ffff 180: \ufffe-\U0010ffff
181: \u0001-';' 181: \u0001-';'
182: '?'-\u00ff 182: '?'-\u00ff
183: . 183: .
*/ */

File diff suppressed because it is too large Load Diff

View File

@@ -44,7 +44,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S1 actionRow{ // S1
@@ -70,7 +69,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S2 actionRow{ // S2
@@ -96,7 +94,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S3 actionRow{ // S3
@@ -122,7 +119,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S4 actionRow{ // S4
@@ -148,7 +144,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S5 actionRow{ // S5
@@ -174,7 +169,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S6 actionRow{ // S6
@@ -200,7 +194,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
shift(11), /* id */ shift(11), /* id */
}, },
}, },
actionRow{ // S7 actionRow{ // S7
@@ -226,7 +219,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
reduce(6), /* id, reduce: DirectedGraph */ reduce(6), /* id, reduce: DirectedGraph */
}, },
}, },
actionRow{ // S8 actionRow{ // S8
@@ -252,7 +244,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
reduce(7), /* id, reduce: DirectedGraph */ reduce(7), /* id, reduce: DirectedGraph */
}, },
}, },
actionRow{ // S9 actionRow{ // S9
@@ -278,7 +269,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S10 actionRow{ // S10
@@ -304,7 +294,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S11 actionRow{ // S11
@@ -330,7 +319,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S12 actionRow{ // S12
@@ -356,7 +344,6 @@ var actionTab = actionTable{
shift(29), /* subgraph */ shift(29), /* subgraph */
nil, /* : */ nil, /* : */
shift(30), /* id */ shift(30), /* id */
}, },
}, },
actionRow{ // S13 actionRow{ // S13
@@ -382,7 +369,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S14 actionRow{ // S14
@@ -408,7 +394,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S15 actionRow{ // S15
@@ -434,7 +419,6 @@ var actionTab = actionTable{
shift(29), /* subgraph */ shift(29), /* subgraph */
nil, /* : */ nil, /* : */
shift(30), /* id */ shift(30), /* id */
}, },
}, },
actionRow{ // S16 actionRow{ // S16
@@ -460,7 +444,6 @@ var actionTab = actionTable{
reduce(17), /* subgraph, reduce: OptSemi */ reduce(17), /* subgraph, reduce: OptSemi */
nil, /* : */ nil, /* : */
reduce(17), /* id, reduce: OptSemi */ reduce(17), /* id, reduce: OptSemi */
}, },
}, },
actionRow{ // S17 actionRow{ // S17
@@ -486,7 +469,6 @@ var actionTab = actionTable{
reduce(12), /* subgraph, reduce: Stmt */ reduce(12), /* subgraph, reduce: Stmt */
nil, /* : */ nil, /* : */
reduce(12), /* id, reduce: Stmt */ reduce(12), /* id, reduce: Stmt */
}, },
}, },
actionRow{ // S18 actionRow{ // S18
@@ -512,7 +494,6 @@ var actionTab = actionTable{
reduce(13), /* subgraph, reduce: Stmt */ reduce(13), /* subgraph, reduce: Stmt */
nil, /* : */ nil, /* : */
reduce(13), /* id, reduce: Stmt */ reduce(13), /* id, reduce: Stmt */
}, },
}, },
actionRow{ // S19 actionRow{ // S19
@@ -538,7 +519,6 @@ var actionTab = actionTable{
reduce(14), /* subgraph, reduce: Stmt */ reduce(14), /* subgraph, reduce: Stmt */
nil, /* : */ nil, /* : */
reduce(14), /* id, reduce: Stmt */ reduce(14), /* id, reduce: Stmt */
}, },
}, },
actionRow{ // S20 actionRow{ // S20
@@ -564,7 +544,6 @@ var actionTab = actionTable{
reduce(15), /* subgraph, reduce: Stmt */ reduce(15), /* subgraph, reduce: Stmt */
nil, /* : */ nil, /* : */
reduce(15), /* id, reduce: Stmt */ reduce(15), /* id, reduce: Stmt */
}, },
}, },
actionRow{ // S21 actionRow{ // S21
@@ -590,7 +569,6 @@ var actionTab = actionTable{
reduce(16), /* subgraph, reduce: Stmt */ reduce(16), /* subgraph, reduce: Stmt */
nil, /* : */ nil, /* : */
reduce(16), /* id, reduce: Stmt */ reduce(16), /* id, reduce: Stmt */
}, },
}, },
actionRow{ // S22 actionRow{ // S22
@@ -616,7 +594,6 @@ var actionTab = actionTable{
reduce(32), /* subgraph, reduce: OptAttrList */ reduce(32), /* subgraph, reduce: OptAttrList */
nil, /* : */ nil, /* : */
reduce(32), /* id, reduce: OptAttrList */ reduce(32), /* id, reduce: OptAttrList */
}, },
}, },
actionRow{ // S23 actionRow{ // S23
@@ -642,7 +619,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S24 actionRow{ // S24
@@ -668,7 +644,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S25 actionRow{ // S25
@@ -694,7 +669,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S26 actionRow{ // S26
@@ -720,7 +694,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S27 actionRow{ // S27
@@ -746,7 +719,6 @@ var actionTab = actionTable{
reduce(50), /* subgraph, reduce: OptPort */ reduce(50), /* subgraph, reduce: OptPort */
shift(46), /* : */ shift(46), /* : */
reduce(50), /* id, reduce: OptPort */ reduce(50), /* id, reduce: OptPort */
}, },
}, },
actionRow{ // S28 actionRow{ // S28
@@ -772,7 +744,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S29 actionRow{ // S29
@@ -798,7 +769,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
shift(11), /* id */ shift(11), /* id */
}, },
}, },
actionRow{ // S30 actionRow{ // S30
@@ -824,7 +794,6 @@ var actionTab = actionTable{
reduce(52), /* subgraph, reduce: ID */ reduce(52), /* subgraph, reduce: ID */
reduce(52), /* :, reduce: ID */ reduce(52), /* :, reduce: ID */
reduce(52), /* id, reduce: ID */ reduce(52), /* id, reduce: ID */
}, },
}, },
actionRow{ // S31 actionRow{ // S31
@@ -850,7 +819,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S32 actionRow{ // S32
@@ -876,7 +844,6 @@ var actionTab = actionTable{
reduce(17), /* subgraph, reduce: OptSemi */ reduce(17), /* subgraph, reduce: OptSemi */
nil, /* : */ nil, /* : */
reduce(17), /* id, reduce: OptSemi */ reduce(17), /* id, reduce: OptSemi */
}, },
}, },
actionRow{ // S33 actionRow{ // S33
@@ -902,7 +869,6 @@ var actionTab = actionTable{
reduce(8), /* subgraph, reduce: StmtList */ reduce(8), /* subgraph, reduce: StmtList */
nil, /* : */ nil, /* : */
reduce(8), /* id, reduce: StmtList */ reduce(8), /* id, reduce: StmtList */
}, },
}, },
actionRow{ // S34 actionRow{ // S34
@@ -928,7 +894,6 @@ var actionTab = actionTable{
reduce(18), /* subgraph, reduce: OptSemi */ reduce(18), /* subgraph, reduce: OptSemi */
nil, /* : */ nil, /* : */
reduce(18), /* id, reduce: OptSemi */ reduce(18), /* id, reduce: OptSemi */
}, },
}, },
actionRow{ // S35 actionRow{ // S35
@@ -954,7 +919,6 @@ var actionTab = actionTable{
reduce(19), /* subgraph, reduce: NodeStmt */ reduce(19), /* subgraph, reduce: NodeStmt */
nil, /* : */ nil, /* : */
reduce(19), /* id, reduce: NodeStmt */ reduce(19), /* id, reduce: NodeStmt */
}, },
}, },
actionRow{ // S36 actionRow{ // S36
@@ -980,7 +944,6 @@ var actionTab = actionTable{
reduce(33), /* subgraph, reduce: OptAttrList */ reduce(33), /* subgraph, reduce: OptAttrList */
nil, /* : */ nil, /* : */
reduce(33), /* id, reduce: OptAttrList */ reduce(33), /* id, reduce: OptAttrList */
}, },
}, },
actionRow{ // S37 actionRow{ // S37
@@ -1006,7 +969,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
shift(55), /* id */ shift(55), /* id */
}, },
}, },
actionRow{ // S38 actionRow{ // S38
@@ -1032,7 +994,6 @@ var actionTab = actionTable{
reduce(32), /* subgraph, reduce: OptAttrList */ reduce(32), /* subgraph, reduce: OptAttrList */
nil, /* : */ nil, /* : */
reduce(32), /* id, reduce: OptAttrList */ reduce(32), /* id, reduce: OptAttrList */
}, },
}, },
actionRow{ // S39 actionRow{ // S39
@@ -1058,7 +1019,6 @@ var actionTab = actionTable{
shift(29), /* subgraph */ shift(29), /* subgraph */
nil, /* : */ nil, /* : */
shift(62), /* id */ shift(62), /* id */
}, },
}, },
actionRow{ // S40 actionRow{ // S40
@@ -1084,7 +1044,6 @@ var actionTab = actionTable{
reduce(22), /* subgraph, reduce: DirectedEdge */ reduce(22), /* subgraph, reduce: DirectedEdge */
nil, /* : */ nil, /* : */
reduce(22), /* id, reduce: DirectedEdge */ reduce(22), /* id, reduce: DirectedEdge */
}, },
}, },
actionRow{ // S41 actionRow{ // S41
@@ -1110,7 +1069,6 @@ var actionTab = actionTable{
reduce(23), /* subgraph, reduce: DirectedEdge */ reduce(23), /* subgraph, reduce: DirectedEdge */
nil, /* : */ nil, /* : */
reduce(23), /* id, reduce: DirectedEdge */ reduce(23), /* id, reduce: DirectedEdge */
}, },
}, },
actionRow{ // S42 actionRow{ // S42
@@ -1136,7 +1094,6 @@ var actionTab = actionTable{
reduce(26), /* subgraph, reduce: AttrStmt */ reduce(26), /* subgraph, reduce: AttrStmt */
nil, /* : */ nil, /* : */
reduce(26), /* id, reduce: AttrStmt */ reduce(26), /* id, reduce: AttrStmt */
}, },
}, },
actionRow{ // S43 actionRow{ // S43
@@ -1162,7 +1119,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
shift(64), /* id */ shift(64), /* id */
}, },
}, },
actionRow{ // S44 actionRow{ // S44
@@ -1188,7 +1144,6 @@ var actionTab = actionTable{
reduce(47), /* subgraph, reduce: Node */ reduce(47), /* subgraph, reduce: Node */
nil, /* : */ nil, /* : */
reduce(47), /* id, reduce: Node */ reduce(47), /* id, reduce: Node */
}, },
}, },
actionRow{ // S45 actionRow{ // S45
@@ -1214,7 +1169,6 @@ var actionTab = actionTable{
reduce(51), /* subgraph, reduce: OptPort */ reduce(51), /* subgraph, reduce: OptPort */
nil, /* : */ nil, /* : */
reduce(51), /* id, reduce: OptPort */ reduce(51), /* id, reduce: OptPort */
}, },
}, },
actionRow{ // S46 actionRow{ // S46
@@ -1240,7 +1194,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
shift(62), /* id */ shift(62), /* id */
}, },
}, },
actionRow{ // S47 actionRow{ // S47
@@ -1266,7 +1219,6 @@ var actionTab = actionTable{
shift(29), /* subgraph */ shift(29), /* subgraph */
nil, /* : */ nil, /* : */
shift(30), /* id */ shift(30), /* id */
}, },
}, },
actionRow{ // S48 actionRow{ // S48
@@ -1292,7 +1244,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S49 actionRow{ // S49
@@ -1318,7 +1269,6 @@ var actionTab = actionTable{
reduce(9), /* subgraph, reduce: StmtList */ reduce(9), /* subgraph, reduce: StmtList */
nil, /* : */ nil, /* : */
reduce(9), /* id, reduce: StmtList */ reduce(9), /* id, reduce: StmtList */
}, },
}, },
actionRow{ // S50 actionRow{ // S50
@@ -1344,7 +1294,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
shift(55), /* id */ shift(55), /* id */
}, },
}, },
actionRow{ // S51 actionRow{ // S51
@@ -1370,7 +1319,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
reduce(38), /* id, reduce: OptSep */ reduce(38), /* id, reduce: OptSep */
}, },
}, },
actionRow{ // S52 actionRow{ // S52
@@ -1396,7 +1344,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S53 actionRow{ // S53
@@ -1422,7 +1369,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
shift(55), /* id */ shift(55), /* id */
}, },
}, },
actionRow{ // S54 actionRow{ // S54
@@ -1448,7 +1394,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S55 actionRow{ // S55
@@ -1474,7 +1419,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S56 actionRow{ // S56
@@ -1500,7 +1444,6 @@ var actionTab = actionTable{
reduce(20), /* subgraph, reduce: EdgeStmt */ reduce(20), /* subgraph, reduce: EdgeStmt */
nil, /* : */ nil, /* : */
reduce(20), /* id, reduce: EdgeStmt */ reduce(20), /* id, reduce: EdgeStmt */
}, },
}, },
actionRow{ // S57 actionRow{ // S57
@@ -1526,7 +1469,6 @@ var actionTab = actionTable{
reduce(46), /* subgraph, reduce: Vertex */ reduce(46), /* subgraph, reduce: Vertex */
nil, /* : */ nil, /* : */
reduce(46), /* id, reduce: Vertex */ reduce(46), /* id, reduce: Vertex */
}, },
}, },
actionRow{ // S58 actionRow{ // S58
@@ -1552,7 +1494,6 @@ var actionTab = actionTable{
reduce(45), /* subgraph, reduce: Vertex */ reduce(45), /* subgraph, reduce: Vertex */
nil, /* : */ nil, /* : */
reduce(45), /* id, reduce: Vertex */ reduce(45), /* id, reduce: Vertex */
}, },
}, },
actionRow{ // S59 actionRow{ // S59
@@ -1578,7 +1519,6 @@ var actionTab = actionTable{
reduce(24), /* subgraph, reduce: OptEdge */ reduce(24), /* subgraph, reduce: OptEdge */
nil, /* : */ nil, /* : */
reduce(24), /* id, reduce: OptEdge */ reduce(24), /* id, reduce: OptEdge */
}, },
}, },
actionRow{ // S60 actionRow{ // S60
@@ -1604,7 +1544,6 @@ var actionTab = actionTable{
reduce(50), /* subgraph, reduce: OptPort */ reduce(50), /* subgraph, reduce: OptPort */
shift(46), /* : */ shift(46), /* : */
reduce(50), /* id, reduce: OptPort */ reduce(50), /* id, reduce: OptPort */
}, },
}, },
actionRow{ // S61 actionRow{ // S61
@@ -1630,7 +1569,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S62 actionRow{ // S62
@@ -1656,7 +1594,6 @@ var actionTab = actionTable{
reduce(52), /* subgraph, reduce: ID */ reduce(52), /* subgraph, reduce: ID */
reduce(52), /* :, reduce: ID */ reduce(52), /* :, reduce: ID */
reduce(52), /* id, reduce: ID */ reduce(52), /* id, reduce: ID */
}, },
}, },
actionRow{ // S63 actionRow{ // S63
@@ -1682,7 +1619,6 @@ var actionTab = actionTable{
reduce(41), /* subgraph, reduce: Attr */ reduce(41), /* subgraph, reduce: Attr */
nil, /* : */ nil, /* : */
reduce(41), /* id, reduce: Attr */ reduce(41), /* id, reduce: Attr */
}, },
}, },
actionRow{ // S64 actionRow{ // S64
@@ -1708,7 +1644,6 @@ var actionTab = actionTable{
reduce(52), /* subgraph, reduce: ID */ reduce(52), /* subgraph, reduce: ID */
nil, /* : */ nil, /* : */
reduce(52), /* id, reduce: ID */ reduce(52), /* id, reduce: ID */
}, },
}, },
actionRow{ // S65 actionRow{ // S65
@@ -1734,7 +1669,6 @@ var actionTab = actionTable{
reduce(48), /* subgraph, reduce: Port */ reduce(48), /* subgraph, reduce: Port */
shift(77), /* : */ shift(77), /* : */
reduce(48), /* id, reduce: Port */ reduce(48), /* id, reduce: Port */
}, },
}, },
actionRow{ // S66 actionRow{ // S66
@@ -1760,7 +1694,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S67 actionRow{ // S67
@@ -1786,7 +1719,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S68 actionRow{ // S68
@@ -1812,7 +1744,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
reduce(39), /* id, reduce: OptSep */ reduce(39), /* id, reduce: OptSep */
}, },
}, },
actionRow{ // S69 actionRow{ // S69
@@ -1838,7 +1769,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
reduce(34), /* id, reduce: AList */ reduce(34), /* id, reduce: AList */
}, },
}, },
actionRow{ // S70 actionRow{ // S70
@@ -1864,7 +1794,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
reduce(40), /* id, reduce: OptSep */ reduce(40), /* id, reduce: OptSep */
}, },
}, },
actionRow{ // S71 actionRow{ // S71
@@ -1890,7 +1819,6 @@ var actionTab = actionTable{
reduce(30), /* subgraph, reduce: AttrList */ reduce(30), /* subgraph, reduce: AttrList */
nil, /* : */ nil, /* : */
reduce(30), /* id, reduce: AttrList */ reduce(30), /* id, reduce: AttrList */
}, },
}, },
actionRow{ // S72 actionRow{ // S72
@@ -1916,7 +1844,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
reduce(38), /* id, reduce: OptSep */ reduce(38), /* id, reduce: OptSep */
}, },
}, },
actionRow{ // S73 actionRow{ // S73
@@ -1942,7 +1869,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
shift(82), /* id */ shift(82), /* id */
}, },
}, },
actionRow{ // S74 actionRow{ // S74
@@ -1968,7 +1894,6 @@ var actionTab = actionTable{
reduce(25), /* subgraph, reduce: OptEdge */ reduce(25), /* subgraph, reduce: OptEdge */
nil, /* : */ nil, /* : */
reduce(25), /* id, reduce: OptEdge */ reduce(25), /* id, reduce: OptEdge */
}, },
}, },
actionRow{ // S75 actionRow{ // S75
@@ -1994,7 +1919,6 @@ var actionTab = actionTable{
reduce(21), /* subgraph, reduce: Edge */ reduce(21), /* subgraph, reduce: Edge */
nil, /* : */ nil, /* : */
reduce(21), /* id, reduce: Edge */ reduce(21), /* id, reduce: Edge */
}, },
}, },
actionRow{ // S76 actionRow{ // S76
@@ -2020,7 +1944,6 @@ var actionTab = actionTable{
shift(29), /* subgraph */ shift(29), /* subgraph */
nil, /* : */ nil, /* : */
shift(30), /* id */ shift(30), /* id */
}, },
}, },
actionRow{ // S77 actionRow{ // S77
@@ -2046,7 +1969,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
shift(85), /* id */ shift(85), /* id */
}, },
}, },
actionRow{ // S78 actionRow{ // S78
@@ -2072,7 +1994,6 @@ var actionTab = actionTable{
reduce(42), /* subgraph, reduce: Subgraph */ reduce(42), /* subgraph, reduce: Subgraph */
nil, /* : */ nil, /* : */
reduce(42), /* id, reduce: Subgraph */ reduce(42), /* id, reduce: Subgraph */
}, },
}, },
actionRow{ // S79 actionRow{ // S79
@@ -2098,7 +2019,6 @@ var actionTab = actionTable{
reduce(31), /* subgraph, reduce: AttrList */ reduce(31), /* subgraph, reduce: AttrList */
nil, /* : */ nil, /* : */
reduce(31), /* id, reduce: AttrList */ reduce(31), /* id, reduce: AttrList */
}, },
}, },
actionRow{ // S80 actionRow{ // S80
@@ -2124,7 +2044,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
reduce(35), /* id, reduce: AList */ reduce(35), /* id, reduce: AList */
}, },
}, },
actionRow{ // S81 actionRow{ // S81
@@ -2150,7 +2069,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
reduce(41), /* id, reduce: Attr */ reduce(41), /* id, reduce: Attr */
}, },
}, },
actionRow{ // S82 actionRow{ // S82
@@ -2176,7 +2094,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
reduce(52), /* id, reduce: ID */ reduce(52), /* id, reduce: ID */
}, },
}, },
actionRow{ // S83 actionRow{ // S83
@@ -2202,7 +2119,6 @@ var actionTab = actionTable{
nil, /* subgraph */ nil, /* subgraph */
nil, /* : */ nil, /* : */
nil, /* id */ nil, /* id */
}, },
}, },
actionRow{ // S84 actionRow{ // S84
@@ -2228,7 +2144,6 @@ var actionTab = actionTable{
reduce(49), /* subgraph, reduce: Port */ reduce(49), /* subgraph, reduce: Port */
nil, /* : */ nil, /* : */
reduce(49), /* id, reduce: Port */ reduce(49), /* id, reduce: Port */
}, },
}, },
actionRow{ // S85 actionRow{ // S85
@@ -2254,7 +2169,6 @@ var actionTab = actionTable{
reduce(52), /* subgraph, reduce: ID */ reduce(52), /* subgraph, reduce: ID */
nil, /* : */ nil, /* : */
reduce(52), /* id, reduce: ID */ reduce(52), /* id, reduce: ID */
}, },
}, },
actionRow{ // S86 actionRow{ // S86
@@ -2280,7 +2194,6 @@ var actionTab = actionTable{
reduce(42), /* subgraph, reduce: Subgraph */ reduce(42), /* subgraph, reduce: Subgraph */
nil, /* : */ nil, /* : */
reduce(42), /* id, reduce: Subgraph */ reduce(42), /* id, reduce: Subgraph */
}, },
}, },
} }

View File

@@ -51,7 +51,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S1 gotoRow{ // S1
-1, // S' -1, // S'
@@ -84,7 +83,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S2 gotoRow{ // S2
-1, // S' -1, // S'
@@ -117,7 +115,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S3 gotoRow{ // S3
-1, // S' -1, // S'
@@ -150,7 +147,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S4 gotoRow{ // S4
-1, // S' -1, // S'
@@ -183,7 +179,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S5 gotoRow{ // S5
-1, // S' -1, // S'
@@ -216,7 +211,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S6 gotoRow{ // S6
-1, // S' -1, // S'
@@ -249,7 +243,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
10, // ID 10, // ID
9, // OptID 9, // OptID
}, },
gotoRow{ // S7 gotoRow{ // S7
-1, // S' -1, // S'
@@ -282,7 +275,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S8 gotoRow{ // S8
-1, // S' -1, // S'
@@ -315,7 +307,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S9 gotoRow{ // S9
-1, // S' -1, // S'
@@ -348,7 +339,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S10 gotoRow{ // S10
-1, // S' -1, // S'
@@ -381,7 +371,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S11 gotoRow{ // S11
-1, // S' -1, // S'
@@ -414,7 +403,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S12 gotoRow{ // S12
-1, // S' -1, // S'
@@ -447,7 +435,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
27, // ID 27, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S13 gotoRow{ // S13
-1, // S' -1, // S'
@@ -480,7 +467,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S14 gotoRow{ // S14
-1, // S' -1, // S'
@@ -513,7 +499,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S15 gotoRow{ // S15
-1, // S' -1, // S'
@@ -546,7 +531,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
27, // ID 27, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S16 gotoRow{ // S16
-1, // S' -1, // S'
@@ -579,7 +563,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S17 gotoRow{ // S17
-1, // S' -1, // S'
@@ -612,7 +595,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S18 gotoRow{ // S18
-1, // S' -1, // S'
@@ -645,7 +627,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S19 gotoRow{ // S19
-1, // S' -1, // S'
@@ -678,7 +659,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S20 gotoRow{ // S20
-1, // S' -1, // S'
@@ -711,7 +691,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S21 gotoRow{ // S21
-1, // S' -1, // S'
@@ -744,7 +723,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S22 gotoRow{ // S22
-1, // S' -1, // S'
@@ -777,7 +755,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S23 gotoRow{ // S23
-1, // S' -1, // S'
@@ -810,7 +787,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S24 gotoRow{ // S24
-1, // S' -1, // S'
@@ -843,7 +819,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S25 gotoRow{ // S25
-1, // S' -1, // S'
@@ -876,7 +851,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S26 gotoRow{ // S26
-1, // S' -1, // S'
@@ -909,7 +883,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S27 gotoRow{ // S27
-1, // S' -1, // S'
@@ -942,7 +915,6 @@ var gotoTab = gotoTable{
44, // OptPort 44, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S28 gotoRow{ // S28
-1, // S' -1, // S'
@@ -975,7 +947,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S29 gotoRow{ // S29
-1, // S' -1, // S'
@@ -1008,7 +979,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
10, // ID 10, // ID
48, // OptID 48, // OptID
}, },
gotoRow{ // S30 gotoRow{ // S30
-1, // S' -1, // S'
@@ -1041,7 +1011,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S31 gotoRow{ // S31
-1, // S' -1, // S'
@@ -1074,7 +1043,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S32 gotoRow{ // S32
-1, // S' -1, // S'
@@ -1107,7 +1075,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S33 gotoRow{ // S33
-1, // S' -1, // S'
@@ -1140,7 +1107,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S34 gotoRow{ // S34
-1, // S' -1, // S'
@@ -1173,7 +1139,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S35 gotoRow{ // S35
-1, // S' -1, // S'
@@ -1206,7 +1171,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S36 gotoRow{ // S36
-1, // S' -1, // S'
@@ -1239,7 +1203,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S37 gotoRow{ // S37
-1, // S' -1, // S'
@@ -1272,7 +1235,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
54, // ID 54, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S38 gotoRow{ // S38
-1, // S' -1, // S'
@@ -1305,7 +1267,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S39 gotoRow{ // S39
-1, // S' -1, // S'
@@ -1338,7 +1299,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
60, // ID 60, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S40 gotoRow{ // S40
-1, // S' -1, // S'
@@ -1371,7 +1331,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S41 gotoRow{ // S41
-1, // S' -1, // S'
@@ -1404,7 +1363,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S42 gotoRow{ // S42
-1, // S' -1, // S'
@@ -1437,7 +1395,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S43 gotoRow{ // S43
-1, // S' -1, // S'
@@ -1470,7 +1427,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
63, // ID 63, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S44 gotoRow{ // S44
-1, // S' -1, // S'
@@ -1503,7 +1459,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S45 gotoRow{ // S45
-1, // S' -1, // S'
@@ -1536,7 +1491,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S46 gotoRow{ // S46
-1, // S' -1, // S'
@@ -1569,7 +1523,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
65, // ID 65, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S47 gotoRow{ // S47
-1, // S' -1, // S'
@@ -1602,7 +1555,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
27, // ID 27, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S48 gotoRow{ // S48
-1, // S' -1, // S'
@@ -1635,7 +1587,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S49 gotoRow{ // S49
-1, // S' -1, // S'
@@ -1668,7 +1619,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S50 gotoRow{ // S50
-1, // S' -1, // S'
@@ -1701,7 +1651,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
54, // ID 54, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S51 gotoRow{ // S51
-1, // S' -1, // S'
@@ -1734,7 +1683,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S52 gotoRow{ // S52
-1, // S' -1, // S'
@@ -1767,7 +1715,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S53 gotoRow{ // S53
-1, // S' -1, // S'
@@ -1800,7 +1747,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
54, // ID 54, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S54 gotoRow{ // S54
-1, // S' -1, // S'
@@ -1833,7 +1779,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S55 gotoRow{ // S55
-1, // S' -1, // S'
@@ -1866,7 +1811,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S56 gotoRow{ // S56
-1, // S' -1, // S'
@@ -1899,7 +1843,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S57 gotoRow{ // S57
-1, // S' -1, // S'
@@ -1932,7 +1875,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S58 gotoRow{ // S58
-1, // S' -1, // S'
@@ -1965,7 +1907,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S59 gotoRow{ // S59
-1, // S' -1, // S'
@@ -1998,7 +1939,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S60 gotoRow{ // S60
-1, // S' -1, // S'
@@ -2031,7 +1971,6 @@ var gotoTab = gotoTable{
44, // OptPort 44, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S61 gotoRow{ // S61
-1, // S' -1, // S'
@@ -2064,7 +2003,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S62 gotoRow{ // S62
-1, // S' -1, // S'
@@ -2097,7 +2035,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S63 gotoRow{ // S63
-1, // S' -1, // S'
@@ -2130,7 +2067,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S64 gotoRow{ // S64
-1, // S' -1, // S'
@@ -2163,7 +2099,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S65 gotoRow{ // S65
-1, // S' -1, // S'
@@ -2196,7 +2131,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S66 gotoRow{ // S66
-1, // S' -1, // S'
@@ -2229,7 +2163,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S67 gotoRow{ // S67
-1, // S' -1, // S'
@@ -2262,7 +2195,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S68 gotoRow{ // S68
-1, // S' -1, // S'
@@ -2295,7 +2227,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S69 gotoRow{ // S69
-1, // S' -1, // S'
@@ -2328,7 +2259,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S70 gotoRow{ // S70
-1, // S' -1, // S'
@@ -2361,7 +2291,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S71 gotoRow{ // S71
-1, // S' -1, // S'
@@ -2394,7 +2323,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S72 gotoRow{ // S72
-1, // S' -1, // S'
@@ -2427,7 +2355,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S73 gotoRow{ // S73
-1, // S' -1, // S'
@@ -2460,7 +2387,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
81, // ID 81, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S74 gotoRow{ // S74
-1, // S' -1, // S'
@@ -2493,7 +2419,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S75 gotoRow{ // S75
-1, // S' -1, // S'
@@ -2526,7 +2451,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S76 gotoRow{ // S76
-1, // S' -1, // S'
@@ -2559,7 +2483,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
27, // ID 27, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S77 gotoRow{ // S77
-1, // S' -1, // S'
@@ -2592,7 +2515,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
84, // ID 84, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S78 gotoRow{ // S78
-1, // S' -1, // S'
@@ -2625,7 +2547,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S79 gotoRow{ // S79
-1, // S' -1, // S'
@@ -2658,7 +2579,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S80 gotoRow{ // S80
-1, // S' -1, // S'
@@ -2691,7 +2611,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S81 gotoRow{ // S81
-1, // S' -1, // S'
@@ -2724,7 +2643,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S82 gotoRow{ // S82
-1, // S' -1, // S'
@@ -2757,7 +2675,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S83 gotoRow{ // S83
-1, // S' -1, // S'
@@ -2790,7 +2707,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S84 gotoRow{ // S84
-1, // S' -1, // S'
@@ -2823,7 +2739,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S85 gotoRow{ // S85
-1, // S' -1, // S'
@@ -2856,7 +2771,6 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
gotoRow{ // S86 gotoRow{ // S86
-1, // S' -1, // S'
@@ -2889,6 +2803,5 @@ var gotoTab = gotoTable{
-1, // OptPort -1, // OptPort
-1, // ID -1, // ID
-1, // OptID -1, // OptID
}, },
} }

View File

@@ -36,7 +36,8 @@ type stack struct {
const iNITIAL_STACK_SIZE = 100 const iNITIAL_STACK_SIZE = 100
func newStack() *stack { func newStack() *stack {
return &stack{state: make([]int, 0, iNITIAL_STACK_SIZE), return &stack{
state: make([]int, 0, iNITIAL_STACK_SIZE),
attrib: make([]Attrib, 0, iNITIAL_STACK_SIZE), attrib: make([]Attrib, 0, iNITIAL_STACK_SIZE),
} }
} }
@@ -196,7 +197,6 @@ func (this *Parser) Parse(scanner Scanner) (res interface{}, err error) {
panic("Error recovery led to invalid action") panic("Error recovery led to invalid action")
} }
} }
// fmt.Printf("S%d %s %s\n", this.stack.top(), token.TokMap.TokenString(this.nextToken), action.String()) // fmt.Printf("S%d %s %s\n", this.stack.top(), token.TokMap.TokenString(this.nextToken), action.String())
switch act := action.(type) { switch act := action.(type) {

View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
cd internal
make clean && make