cmd/goyacc: quadruple the max states and actions
This commit quadruples the maximum number of states and the size of the action table to allow for larger grammars. Fixes golang/go#11517 Change-Id: Ieb64efa8e3402ae1a5a9190710f98a44195ecd1b Reviewed-on: https://go-review.googlesource.com/33585 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
574d60b05a
commit
ebf631f917
|
@ -60,9 +60,9 @@ import (
|
||||||
// the following are adjustable
|
// the following are adjustable
|
||||||
// according to memory size
|
// according to memory size
|
||||||
const (
|
const (
|
||||||
ACTSIZE = 30000
|
ACTSIZE = 120000
|
||||||
NSTATES = 2000
|
NSTATES = 8000
|
||||||
TEMPSIZE = 2000
|
TEMPSIZE = 8000
|
||||||
|
|
||||||
SYMINC = 50 // increase for non-term or term
|
SYMINC = 50 // increase for non-term or term
|
||||||
RULEINC = 50 // increase for max rule length prodptr[i]
|
RULEINC = 50 // increase for max rule length prodptr[i]
|
||||||
|
|
Loading…
Reference in New Issue