From ebf631f91765900b0af5a2010d1ee5e471db6b49 Mon Sep 17 00:00:00 2001 From: Jordan Lewis Date: Mon, 28 Nov 2016 12:04:18 -0500 Subject: [PATCH] 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 --- cmd/goyacc/yacc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/goyacc/yacc.go b/cmd/goyacc/yacc.go index f319950b..83849134 100644 --- a/cmd/goyacc/yacc.go +++ b/cmd/goyacc/yacc.go @@ -60,9 +60,9 @@ import ( // the following are adjustable // according to memory size const ( - ACTSIZE = 30000 - NSTATES = 2000 - TEMPSIZE = 2000 + ACTSIZE = 120000 + NSTATES = 8000 + TEMPSIZE = 8000 SYMINC = 50 // increase for non-term or term RULEINC = 50 // increase for max rule length prodptr[i]