[svn:parrot] r38415 - in branches/pmc_pct/compilers/pmc: src/parser t t/data
cotto at svn.parrot.org
cotto at svn.parrot.org
Thu Apr 30 22:12:57 UTC 2009
Author: cotto
Date: Thu Apr 30 22:12:56 2009
New Revision: 38415
URL: https://trac.parrot.org/parrot/changeset/38415
Log:
[grammar] handle empty function args
Added:
branches/pmc_pct/compilers/pmc/t/data/class24.pmc
Modified:
branches/pmc_pct/compilers/pmc/src/parser/grammar.pg
branches/pmc_pct/compilers/pmc/t/01-parse.t
Modified: branches/pmc_pct/compilers/pmc/src/parser/grammar.pg
==============================================================================
--- branches/pmc_pct/compilers/pmc/src/parser/grammar.pg Thu Apr 30 11:22:20 2009 (r38414)
+++ branches/pmc_pct/compilers/pmc/src/parser/grammar.pg Thu Apr 30 22:12:56 2009 (r38415)
@@ -103,7 +103,7 @@
# It's really bad signature
rule c_signature {
- <c_type> <identifier> '(' <c_arguments> ')'
+ <c_type> <identifier> '(' <c_arguments>? ')'
}
# Very-very simplified C type. E.g. "void", "PMC *", etc
Modified: branches/pmc_pct/compilers/pmc/t/01-parse.t
==============================================================================
--- branches/pmc_pct/compilers/pmc/t/01-parse.t Thu Apr 30 11:22:20 2009 (r38414)
+++ branches/pmc_pct/compilers/pmc/t/01-parse.t Thu Apr 30 22:12:56 2009 (r38415)
@@ -7,7 +7,7 @@
load_bytecode 'compilers/pmc/pmc.pbc'
.local int total
- total = 24
+ total = 25
plan(total)
test_parse(total)
Added: branches/pmc_pct/compilers/pmc/t/data/class24.pmc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ branches/pmc_pct/compilers/pmc/t/data/class24.pmc Thu Apr 30 22:12:56 2009 (r38415)
@@ -0,0 +1,3 @@
+pmclass Integer {
+ VTABLE void increment() { }
+}
More information about the parrot-commits
mailing list