Skip to content

Commit

Permalink
LALR: remove debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
keyuchang committed Jul 26, 2022
1 parent 18be2e4 commit 41591e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion LALR/Table.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"fmt"

symbol "github.com/acekingke/yaccgo/Symbol"
utils "github.com/acekingke/yaccgo/Utils"
)

type E_ActionType int
Expand Down Expand Up @@ -174,7 +175,10 @@ func (lalr *LALR1) GenTable() ([][]int, error) {
row[syInd] = lalr.GenAcceptCode()
}
} else {
fmt.Println("it is nonassoc?")
if utils.DebugFlags {
fmt.Println("it is nonassoc, should error")
}

}
}
tableGen = append(tableGen, row)
Expand Down

0 comments on commit 41591e1

Please sign in to comment.