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

@@ -36,7 +36,8 @@ type stack struct {
const iNITIAL_STACK_SIZE = 100
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),
}
}
@@ -196,7 +197,6 @@ func (this *Parser) Parse(scanner Scanner) (res interface{}, err error) {
panic("Error recovery led to invalid action")
}
}
// fmt.Printf("S%d %s %s\n", this.stack.top(), token.TokMap.TokenString(this.nextToken), action.String())
switch act := action.(type) {