From 976f468c6e3148689bb59e23b2d11b76d52d0941 Mon Sep 17 00:00:00 2001 From: adam Date: Wed, 25 Oct 2006 12:20:57 +0100 Subject: [PATCH] fixed performance bug in grammar --- fleet.g | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/fleet.g b/fleet.g index b5beac2..98d9b92 100644 --- a/fleet.g +++ b/fleet.g @@ -11,14 +11,8 @@ Comment = "//" ~[\n]* "\n" | "/*" ~[\n]* "*/" -w = [\r\n ] -ws = w ws! - | Comment ws! - | () - // for some reason this causes major slowness! -//w = [\r\n ]* -//ws = (w | Comment)* -> ~[\r\n ] +ws = ([\r\n ] | Comment)* -> ~[\r\n ] s = ws! Program ws! Program = Program:: -- 1.7.10.4