[svn:parrot] r39350 - branches/pmc_pct/compilers/vtdumper/src/parser
cotto at svn.parrot.org
cotto at svn.parrot.org
Wed Jun 3 07:53:30 UTC 2009
Author: cotto
Date: Wed Jun 3 07:53:28 2009
New Revision: 39350
URL: https://trac.parrot.org/parrot/changeset/39350
Log:
[vtdumper] various grammar fixes
Modified:
branches/pmc_pct/compilers/vtdumper/src/parser/grammar.pg
Modified: branches/pmc_pct/compilers/vtdumper/src/parser/grammar.pg
==============================================================================
--- branches/pmc_pct/compilers/vtdumper/src/parser/grammar.pg Wed Jun 3 05:32:19 2009 (r39349)
+++ branches/pmc_pct/compilers/vtdumper/src/parser/grammar.pg Wed Jun 3 07:53:28 2009 (r39350)
@@ -4,13 +4,15 @@
grammar VTable::Grammar is PCT::Grammar;
token TOP {
- <sections>
+ <vtable_or_section>*
[ $ || <panic: 'Syntax error'> ]
{*}
}
rule sections {
+ {*} #= begin
<vtable_or_section>*
+ {*} #= end
}
rule vtable_or_section {
@@ -18,7 +20,7 @@
}
rule section {
- '[' <identifier> ']' <attribute>? {*}
+ '[' <identifier> ']' <attribute>* {*}
}
rule attribute {
@@ -27,7 +29,7 @@
rule vtable_func {
- <type> <identifier> '(' <args> ')' <attribute>? {*}
+ <type> <identifier> '(' <args> ')' <attribute>* {*}
}
rule type {
More information about the parrot-commits
mailing list