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:
Jordan Lewis 2016-11-28 12:04:18 -05:00 committed by Ian Lance Taylor
parent 574d60b05a
commit ebf631f917
1 changed files with 3 additions and 3 deletions

View File

@ -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]