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

bacek at svn.parrot.org bacek at svn.parrot.org
Fri Apr 24 13:45:48 UTC 2009


Author: bacek
Date: Fri Apr 24 13:45:47 2009
New Revision: 38303
URL: https://trac.parrot.org/parrot/changeset/38303

Log:
Add singleton traits

Added:
   branches/pmc_pct/compilers/pmc/t/data/class20.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 13:45:23 2009	(r38302)
+++ branches/pmc_pct/compilers/pmc/src/parser/grammar.pg	Fri Apr 24 13:45:47 2009	(r38303)
@@ -45,6 +45,7 @@
     | 'need_ext'
     | 'abstract'
     | 'no_init'
+    | 'singleton'
     ]
 }
 

Modified: branches/pmc_pct/compilers/pmc/t/01-parse.t
==============================================================================
--- branches/pmc_pct/compilers/pmc/t/01-parse.t	Fri Apr 24 13:45:23 2009	(r38302)
+++ branches/pmc_pct/compilers/pmc/t/01-parse.t	Fri Apr 24 13:45:47 2009	(r38303)
@@ -5,7 +5,7 @@
 .include 'test_more.pir'
 load_bytecode 'compilers/pmc/pmc.pbc'
     .local int total
-    total = 20
+    total = 21
 
     plan(total)
     test_parse(total)

Added: branches/pmc_pct/compilers/pmc/t/data/class20.pmc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/pmc_pct/compilers/pmc/t/data/class20.pmc	Fri Apr 24 13:45:47 2009	(r38303)
@@ -0,0 +1,2 @@
+pmclass Env singleton provides hash {
+}


More information about the parrot-commits mailing list