[svn:parrot] r39934 - branches/ops_pct/compilers/opsc/compiler
bacek at svn.parrot.org
bacek at svn.parrot.org
Tue Jul 7 14:27:40 UTC 2009
Author: bacek
Date: Tue Jul 7 14:27:40 2009
New Revision: 39934
URL: https://trac.parrot.org/parrot/changeset/39934
Log:
[opsc] Yet another simplify of op_body parsing. It's now twice faster than before.
Modified:
branches/ops_pct/compilers/opsc/compiler/grammar.pg
Modified: branches/ops_pct/compilers/opsc/compiler/grammar.pg
==============================================================================
--- branches/ops_pct/compilers/opsc/compiler/grammar.pg Tue Jul 7 14:27:04 2009 (r39933)
+++ branches/ops_pct/compilers/opsc/compiler/grammar.pg Tue Jul 7 14:27:40 2009 (r39934)
@@ -78,12 +78,7 @@
# OpBody starts with '{' and ends with single '}' on line.
token op_body {
- '{' <op_body_chunk>* '}' {*}
-}
-
-token op_body_chunk {
- | <-[{}]>
- | <op_body>
+ '{' .*? ^^ '}' {*}
}
token identifier {
More information about the parrot-commits
mailing list