Permalink
Browse files

[cardinal]

* Start of a class hierarchy
* Completely stolen from Rakudo


git-svn-id: https://svn.parrot.org/parrot/trunk/languages/cardinal@27506 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
1 parent 9ebe999 commit b8e8ee869414ce9b25e849cb68c30897d812a4b6 @tene tene committed May 14, 2008
Showing with 2,184 additions and 5 deletions.
  1. +3 −0 cardinal.pir
  2. +4 −0 config/makefiles/root.in
  3. +937 −0 src/classes/Array.pir
  4. +74 −0 src/classes/Integer.pir
  5. +634 −0 src/classes/Object.pir
  6. +520 −0 src/classes/String.pir
  7. +11 −5 src/parser/actions.pm
  8. +1 −0 src/parser/grammar.pg
View
@@ -55,6 +55,9 @@ object.
$P0 = new 'List'
set_hll_global ['cardinal';'Grammar';'Actions'], '@?BLOCK', $P0
+
+ $P1 = get_hll_global ['PAST::Compiler'], '%valflags'
+ $P1['CardinalString'] = 'e'
.end
=item main(args :slurpy) :main
View
@@ -40,6 +40,10 @@ SOURCES = cardinal.pir \
BUILTINS_PIR = \
src/builtins/say.pir \
src/builtins/cmp.pir \
+ src/classes/Object.pir \
+ src/classes/String.pir \
+ src/classes/Integer.pir \
+ src/classes/Array.pir \
# PMCS = cardinal
# PMC_SOURCES = $(PMC_DIR)/cardinal.pmc
Oops, something went wrong.

0 comments on commit b8e8ee8

Please sign in to comment.