[svn:parrot] r38309 - in branches/pmc_pct/compilers/pmc: src/parser t t/data

bacek at svn.parrot.org bacek at svn.parrot.org
Fri Apr 24 14:13:51 UTC 2009


Author: bacek
Date: Fri Apr 24 14:13:50 2009
New Revision: 38309
URL: https://trac.parrot.org/parrot/changeset/38309

Log:
Add group and lib traits

Added:
   branches/pmc_pct/compilers/pmc/t/data/class22.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 14:08:28 2009	(r38308)
+++ branches/pmc_pct/compilers/pmc/src/parser/grammar.pg	Fri Apr 24 14:13:50 2009	(r38309)
@@ -40,8 +40,10 @@
 
 rule traits {
     [
-    | 'extends' <identifier>
-    | 'provides' <identifier>
+    | 'extends'     <identifier>
+    | 'provides'    <identifier>
+    | 'group'       <identifier>
+    | 'lib'         <identifier>
     | 'need_ext'
     | 'abstract'
     | 'no_init'

Modified: branches/pmc_pct/compilers/pmc/t/01-parse.t
==============================================================================
--- branches/pmc_pct/compilers/pmc/t/01-parse.t	Fri Apr 24 14:08:28 2009	(r38308)
+++ branches/pmc_pct/compilers/pmc/t/01-parse.t	Fri Apr 24 14:13:50 2009	(r38309)
@@ -5,7 +5,7 @@
 .include 'test_more.pir'
 load_bytecode 'compilers/pmc/pmc.pbc'
     .local int total
-    total = 22
+    total = 23
 
     plan(total)
     test_parse(total)

Added: branches/pmc_pct/compilers/pmc/t/data/class22.pmc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/pmc_pct/compilers/pmc/t/data/class22.pmc	Fri Apr 24 14:13:50 2009	(r38309)
@@ -0,0 +1,6 @@
+pmclass MD2
+    dynpmc
+    need_ext
+    group digest_group
+    lib crypto {
+}


More information about the parrot-commits mailing list