Changeset 22185 for v6

Show
Ignore:
Timestamp:
09/07/08 22:17:03 (3 months ago)
Author:
pmurias
Message:

[smop]
unbroke m0ld
changed the example s1p code to take an iterpreter and a scope

Location:
v6/smop
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • v6/smop/doc/S1PSample.txt

    r22051 r22185  
    11# this is a sample compilation of a Perl 6 class. The example code is in src-s1p/P6Meta.pm 
    22 
     3my $interpreter; 
     4my $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 
    38 
    49# first it needs to create the p6opaque, register in the namespace and 
    510# set the how to SMOP__S1P__PurePrototypeHow 
    611 
    7 # we also create a common lexical scope, that should be used as the 
    8 # outer scope of each method 
    912 
    1013# then it needs to create the mold for the code. it should include the 
     
    1316# the lexical scope population in the beggining of the block. 
    1417 
    15  
    16  
    17  
  • v6/smop/m0ld/M0ld.hs

    r22016 r22185  
    1919    deriving Show 
    2020 
    21 type Parser = GenParser Char 
    2221 
    2322identifier = do