[svn:parrot] r39381 - in branches/pmc_pct/compilers/pmcc: src/parser t/data
bacek at svn.parrot.org
bacek at svn.parrot.org
Thu Jun 4 12:56:35 UTC 2009
Author: bacek
Date: Thu Jun 4 12:56:32 2009
New Revision: 39381
URL: https://trac.parrot.org/parrot/changeset/39381
Log:
[pmcc] Disallow nameless function arguments
Modified:
branches/pmc_pct/compilers/pmcc/src/parser/grammar.pg
branches/pmc_pct/compilers/pmcc/t/data/class04.pmc
branches/pmc_pct/compilers/pmcc/t/data/class05.pmc
branches/pmc_pct/compilers/pmcc/t/data/class06.pmc
Modified: branches/pmc_pct/compilers/pmcc/src/parser/grammar.pg
==============================================================================
--- branches/pmc_pct/compilers/pmcc/src/parser/grammar.pg Thu Jun 4 08:52:55 2009 (r39380)
+++ branches/pmc_pct/compilers/pmcc/src/parser/grammar.pg Thu Jun 4 12:56:32 2009 (r39381)
@@ -181,8 +181,9 @@
}
# Very-very simplified named? function param.
+# No nameless arguments. At least not now.
rule c_argument {
- <c_type> <identifier>?
+ <c_type> <identifier>
{*}
}
@@ -230,4 +231,4 @@
]*
}
-
+# vim: expandtab shiftwidth=4 ft=perl6:
Modified: branches/pmc_pct/compilers/pmcc/t/data/class04.pmc
==============================================================================
--- branches/pmc_pct/compilers/pmcc/t/data/class04.pmc Thu Jun 4 08:52:55 2009 (r39380)
+++ branches/pmc_pct/compilers/pmcc/t/data/class04.pmc Thu Jun 4 12:56:32 2009 (r39381)
@@ -1,4 +1,4 @@
pmclass Foo extends scalar provides scalar {
- METHOD foo (void) {
+ METHOD foo () {
}
}
Modified: branches/pmc_pct/compilers/pmcc/t/data/class05.pmc
==============================================================================
--- branches/pmc_pct/compilers/pmcc/t/data/class05.pmc Thu Jun 4 08:52:55 2009 (r39380)
+++ branches/pmc_pct/compilers/pmcc/t/data/class05.pmc Thu Jun 4 12:56:32 2009 (r39381)
@@ -1,5 +1,5 @@
pmclass Foo extends scalar provides scalar {
- METHOD foo (void) {
+ METHOD foo () {
if {
}
}
Modified: branches/pmc_pct/compilers/pmcc/t/data/class06.pmc
==============================================================================
--- branches/pmc_pct/compilers/pmcc/t/data/class06.pmc Thu Jun 4 08:52:55 2009 (r39380)
+++ branches/pmc_pct/compilers/pmcc/t/data/class06.pmc Thu Jun 4 12:56:32 2009 (r39381)
@@ -5,7 +5,7 @@
=cut
*/
- METHOD foo (void) {
+ METHOD foo () {
if {
}
}
More information about the parrot-commits
mailing list