[svn:parrot] r38293 - in branches/pmc_pct/compilers/pmc: src/parser t t/data
bacek at svn.parrot.org
bacek at svn.parrot.org
Fri Apr 24 12:33:00 UTC 2009
Author: bacek
Date: Fri Apr 24 12:32:59 2009
New Revision: 38293
URL: https://trac.parrot.org/parrot/changeset/38293
Log:
Extend c_type with optional 'struct'
Added:
branches/pmc_pct/compilers/pmc/t/data/class15.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 Fri Apr 24 12:32:37 2009 (r38292)
+++ branches/pmc_pct/compilers/pmc/src/parser/grammar.pg Fri Apr 24 12:32:59 2009 (r38293)
@@ -90,7 +90,7 @@
# Very-very simplified C type. E.g. "void", "PMC *", etc
rule c_type {
- <identifier> '*'?
+ 'struct'? <identifier> '*'?
}
# Very-very simplified named? function param.
Modified: branches/pmc_pct/compilers/pmc/t/01-parse.t
==============================================================================
--- branches/pmc_pct/compilers/pmc/t/01-parse.t Fri Apr 24 12:32:37 2009 (r38292)
+++ branches/pmc_pct/compilers/pmc/t/01-parse.t Fri Apr 24 12:32:59 2009 (r38293)
@@ -5,7 +5,7 @@
.include 'test_more.pir'
load_bytecode 'compilers/pmc/pmc.pbc'
.local int total
- total = 15
+ total = 16
plan(total)
test_parse(total)
Added: branches/pmc_pct/compilers/pmc/t/data/class15.pmc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ branches/pmc_pct/compilers/pmc/t/data/class15.pmc Fri Apr 24 12:32:59 2009 (r38293)
@@ -0,0 +1,4 @@
+pmclass BigInt {
+ ATTR struct BIGINT * bi; /*bigint val*/
+
+}
More information about the parrot-commits
mailing list