[svn:parrot] r38289 - 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:16:45 UTC 2009


Author: bacek
Date: Fri Apr 24 12:16:44 2009
New Revision: 38289
URL: https://trac.parrot.org/parrot/changeset/38289

Log:
Add "need_ext" as valid pmclass pragma.

Added:
   branches/pmc_pct/compilers/pmc/t/data/class13.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 10:46:24 2009	(r38288)
+++ branches/pmc_pct/compilers/pmc/src/parser/grammar.pg	Fri Apr 24 12:16:44 2009	(r38289)
@@ -42,6 +42,7 @@
     [
     | 'extends' <identifier>
     | 'provides' <identifier>
+    | 'need_ext'
     ]
 }
 

Modified: branches/pmc_pct/compilers/pmc/t/01-parse.t
==============================================================================
--- branches/pmc_pct/compilers/pmc/t/01-parse.t	Fri Apr 24 10:46:24 2009	(r38288)
+++ branches/pmc_pct/compilers/pmc/t/01-parse.t	Fri Apr 24 12:16:44 2009	(r38289)
@@ -5,7 +5,7 @@
 .include 'test_more.pir'
 load_bytecode 'compilers/pmc/pmc.pbc'
     .local int total
-    total = 13
+    total = 14
 
     plan(total)
     test_parse(total)

Added: branches/pmc_pct/compilers/pmc/t/data/class13.pmc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/pmc_pct/compilers/pmc/t/data/class13.pmc	Fri Apr 24 12:16:44 2009	(r38289)
@@ -0,0 +1,2 @@
+pmclass Foo provides scalar need_ext {
+}


More information about the parrot-commits mailing list