fixed performance bug in grammar
authoradam <adam@megacz.com>
Wed, 25 Oct 2006 11:20:57 +0000 (12:20 +0100)
committeradam <adam@megacz.com>
Wed, 25 Oct 2006 11:20:57 +0000 (12:20 +0100)
fleet.g

diff --git a/fleet.g b/fleet.g
index b5beac2..98d9b92 100644 (file)
--- a/fleet.g
+++ b/fleet.g
 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::