Changeset 19153

Show
Ignore:
Timestamp:
12/10/07 20:04:18 (10 months ago)
Author:
dlo
Message:

[kp6] fixed infix space problem

Location:
v6/v6-KindaPerl6
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • v6/v6-KindaPerl6/compiled/perl5-kp6-mp6/lib/KindaPerl6/Visitor/Emit/Perl6.pm

    r19148 r19153  
    319319    my $List__ = \@_; 
    320320    do { [] }; 
    321     return ( ( '(' . ( $self->{code}->emit_perl6() . ( ' (' . ( Main::join( [ map { $_->emit_perl6() } @{ $self->{arguments} } ], ', ' ) . '))' ) ) ) ) ); 
     321    return ( ( '(' . ( $self->{code}->emit_perl6() . ( '(' . ( Main::join( [ map { $_->emit_perl6() } @{ $self->{arguments} } ], ', ' ) . '))' ) ) ) ) ); 
    322322} 
    323323 
  • v6/v6-KindaPerl6/docs/FAQ.pod

    r19115 r19153  
    121121 
    122122 [kp6] I have refactored subroutine XXX for clarity and updated the documentation. 
     123 
     124=head3 Seeing an intermediate step. 
     125 
     126Sometimes you want to see how kp6 "saw" the code.  This is seen by running the 
     127code though AST backend. 
     128 
     129 perl script/kp6 -Cast -e ' "a" eq "b" ' 
    123130 
    124131=head3 Cannot see the forest for the trees. / Boot strapping 
  • v6/v6-KindaPerl6/src/KindaPerl6/Visitor/Emit/Perl6.pm

    r19148 r19153  
    251251class Apply { 
    252252    method emit_perl6 { 
    253         return '(' ~ $.code.emit_perl6 ~ ' (' ~ (@.arguments.>>emit_perl6).join(', ') ~ '))'; 
     253        # WARNING: Putting white spaces in here, will mess up the subroutine calls 
     254        return '(' ~ $.code.emit_perl6 ~ '(' ~ (@.arguments.>>emit_perl6).join(', ') ~ '))'; 
    254255    } 
    255256}