[svn:parrot] r46955 - trunk/compilers/opsc/src/Ops/Compiler
bacek at svn.parrot.org
bacek at svn.parrot.org
Mon May 24 10:50:07 UTC 2010
Author: bacek
Date: Mon May 24 10:50:07 2010
New Revision: 46955
URL: https://trac.parrot.org/parrot/changeset/46955
Log:
Remove redundant {*} in ops grammar.
Modified:
trunk/compilers/opsc/src/Ops/Compiler/Grammar.pm
Modified: trunk/compilers/opsc/src/Ops/Compiler/Grammar.pm
==============================================================================
--- trunk/compilers/opsc/src/Ops/Compiler/Grammar.pm Mon May 24 10:25:44 2010 (r46954)
+++ trunk/compilers/opsc/src/Ops/Compiler/Grammar.pm Mon May 24 10:50:07 2010 (r46955)
@@ -9,17 +9,16 @@
rule TOP {
<body>
[ $ || <panic: 'Syntax error'> ]
- {*}
}
rule body {
- [ <preamble> | <op> ]* {*}
+ [ <preamble> | <op> ]*
}
token preamble {
<begin_preamble>
<preamble_guts>
- <end_preamble> {*}
+ <end_preamble>
}
regex preamble_guts {
@@ -48,16 +47,14 @@
rule op_params {
<op_param> [ ',' <op_param> ]*
- {*}
}
rule op_param {
<op_param_direction> <op_param_type>
- {*}
}
token op_param_direction {
- # Order is crucial. PGE doesn't support LTM yet.
+ # Order is crucial. NQP doesn't support LTM yet.
[
| 'inout'
| 'inconst'
@@ -68,7 +65,7 @@
}
token op_param_type {
- # Order is crucial. PGE doesn't support LTM yet.
+ # Order is crucial. NQP doesn't support LTM yet.
[
| 'INTKEY'
| 'INT'
@@ -100,17 +97,14 @@
| <op_macro>
| $<word>=[<alnum>+|<punct>|<space>+]
]
- {*}
}
token macro_param {
'$' $<num>=[<digit>+]
- {*}
}
regex op_macro {
<macro_type> <space>* <macro_destination> <space>* '(' <space>* <body_word>*? ')'
- {*}
}
token macro_type {
More information about the parrot-commits
mailing list