[svn:parrot] r44979 - branches/ops_pct/compilers/opsc/src/Ops/Compiler

cotto at svn.parrot.org cotto at svn.parrot.org
Wed Mar 17 07:26:06 UTC 2010


Author: cotto
Date: Wed Mar 17 07:26:04 2010
New Revision: 44979
URL: https://trac.parrot.org/parrot/changeset/44979

Log:
[opsc] tighten grammar to avoid capturing whitespace surrounding macros

Modified:
   branches/ops_pct/compilers/opsc/src/Ops/Compiler/Grammar.pm

Modified: branches/ops_pct/compilers/opsc/src/Ops/Compiler/Grammar.pm
==============================================================================
--- branches/ops_pct/compilers/opsc/src/Ops/Compiler/Grammar.pm	Wed Mar 17 03:13:25 2010	(r44978)
+++ branches/ops_pct/compilers/opsc/src/Ops/Compiler/Grammar.pm	Wed Mar 17 07:26:04 2010	(r44979)
@@ -107,8 +107,8 @@
     {*}
 }
 
-rule op_macro {
-    <macro_type> <macro_destination> '(' <body_word>*? ')'
+regex op_macro {
+    <macro_type> <space>* <macro_destination> <space>* '(' <space>* <body_word>*? ')'
     {*}
 }
 


More information about the parrot-commits mailing list