Changeset 14571 for src/Pugs/Eval.hs

Show
Ignore:
Timestamp:
11/01/06 17:37:57 (2 years ago)
Author:
audreyt
Message:

* Pugs.Parser: Implement "use v5" blocks:

use v6-alpha;
# ...some Perl 6 code...
{

use v5;
# ...some Perl 5 code...
{

use v6-alpha;
# ...more Perl 6 code...

}

}

Thanks to fglock++ for prompting this.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Eval.hs

    r14491 r14571  
    426426    | otherwise = enterBlock $ reduce exp 
    427427     
     428reduceSyn "block-perl5" [Val p5code] = do 
     429    -- XXX - 0th approximation. 
     430    op1 "Pugs::Internals::eval_perl5" p5code 
     431 
    428432reduceSyn "sub" [exp] = do 
    429433    (VCode sub) <- enterEvalContext (cxtItem "Code") exp