From 4922ab6cc495087f40399746f616cd88590fd884 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Tue, 12 Feb 2013 10:53:13 +0000 Subject: now the beam size for the statistical parser can be configured by using the flag beam_size in the top-level concrete module --- src/compiler/GF/Grammar/Parser.y | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/compiler/GF/Grammar') diff --git a/src/compiler/GF/Grammar/Parser.y b/src/compiler/GF/Grammar/Parser.y index 680724fcc..f8e0d3b46 100644 --- a/src/compiler/GF/Grammar/Parser.y +++ b/src/compiler/GF/Grammar/Parser.y @@ -277,6 +277,9 @@ FlagDef : Posn Ident '=' Ident Posn {% case parseModuleOptions ["--" ++ showIdent $2 ++ "=" ++ showIdent $4] of Ok x -> return x Bad msg -> failLoc $1 msg } + | Posn Ident '=' Double Posn {% case parseModuleOptions ["--" ++ showIdent $2 ++ "=" ++ show $4] of + Ok x -> return x + Bad msg -> failLoc $1 msg } ListDataConstr :: { [Ident] } ListDataConstr -- cgit v1.2.3