Changeset 21586 for misc

Show
Ignore:
Timestamp:
07/28/08 01:31:56 (6 months ago)
Author:
putter
Message:

[rx_on_re] Unbroke vis elf_g. r21458 conjunction regression fixed.
The r21458 commit message comment that it was 'working "better"' was incorrect.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • misc/elfish/rx_on_re/emit5.pm

    r21458 r21586  
     1 
     2sub a_bit_of_p5_for__expand_backtrack_macros() is p5 {' 
     3{ package BacktrackMacrosKludge; 
     4  sub _let_gen { 
     5    my($vars) = @_; 
     6    my $nvars = 1+($vars =~ tr/,//); 
     7    my $tmpvars = join(",",map{"\$__tmp${_}__"}(0..($nvars-1))); 
     8    push(@SCRATCH::_let_stack,[$vars,$tmpvars]); 
     9    "(do{my \$__v__ ; my($tmpvars); { local($vars)=($vars); \$__v__ = do{ "; 
     10  } 
     11  sub _let_end { 
     12    my $e = shift(@SCRATCH::_let_stack) || die "LET(){ }LET pairs didnt match up"; 
     13    my($vars,$tmpvars) = @$e; 
     14    "}; if(!FAILED(\$__v__)){ ($tmpvars)=($vars); }}; if(!FAILED(\$__v__)){ ($vars)=($tmpvars) }; \$__v__ })" 
     15  } 
     16} 
     17'}; 
     18a_bit_of_p5_for__expand_backtrack_macros(); 
     19 
     20 
    121class EmitRegex { 
    222 
     
    193213    my $code = $code0." 
    194214#line 2 \"Regexp::ModuleA::AST::BaseClass RMARE_conj\" 
    195 \n subname \'<conj \'.(\$sub_id++).">" => sub {my \$cn = \$_[0]; 
     215\n subname \'<conj \'.(\$sub_id++).\">\" => sub {my \$cn = \$_[0]; 
    196216  my \$__start__ = \$Regexp::ModuleA::ReentrantEngine::Env::pos; 
    197217  my \$__end__ = undef;