- Timestamp:
- 09/07/08 22:17:03 (3 months ago)
- Location:
- v6/smop
- Files:
-
- 2 modified
-
doc/S1PSample.txt (modified) (2 diffs)
-
m0ld/M0ld.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
v6/smop/doc/S1PSample.txt
r22051 r22185 1 1 # this is a sample compilation of a Perl 6 class. The example code is in src-s1p/P6Meta.pm 2 2 3 my $interpreter; 4 my $scope; 5 6 # we get a get a lexical scope that should be used as the 7 # outer scope of each method, and the interpreter object 3 8 4 9 # first it needs to create the p6opaque, register in the namespace and 5 10 # set the how to SMOP__S1P__PurePrototypeHow 6 11 7 # we also create a common lexical scope, that should be used as the8 # outer scope of each method9 12 10 13 # then it needs to create the mold for the code. it should include the … … 13 16 # the lexical scope population in the beggining of the block. 14 17 15 16 17 -
v6/smop/m0ld/M0ld.hs
r22016 r22185 19 19 deriving Show 20 20 21 type Parser = GenParser Char22 21 23 22 identifier = do
