[svn:parrot] r38313 - branches/pmc_pct/compilers/pmc/src/parser
bacek at svn.parrot.org
bacek at svn.parrot.org
Fri Apr 24 14:43:07 UTC 2009
Author: bacek
Date: Fri Apr 24 14:43:07 2009
New Revision: 38313
URL: https://trac.parrot.org/parrot/changeset/38313
Log:
Slightly improve c_type parsing
Modified:
branches/pmc_pct/compilers/pmc/src/parser/grammar.pg
Modified: branches/pmc_pct/compilers/pmc/src/parser/grammar.pg
==============================================================================
--- branches/pmc_pct/compilers/pmc/src/parser/grammar.pg Fri Apr 24 14:31:08 2009 (r38312)
+++ branches/pmc_pct/compilers/pmc/src/parser/grammar.pg Fri Apr 24 14:43:07 2009 (r38313)
@@ -96,7 +96,13 @@
# Very-very simplified C type. E.g. "void", "PMC *", etc
rule c_type {
- 'struct'? <identifier> '*'?
+ [
+ | 'struct' <identifier>
+ | 'unsigned' <identifier>
+ | <identifier>
+ ]
+ '*'?
+ {*}
}
# Very-very simplified named? function param.
More information about the parrot-commits
mailing list