Changeset 21220

Show
Ignore:
Timestamp:
07/04/08 16:03:29 (5 months ago)
Author:
ruoso
Message:

[smop] SMOPSLIMECapturize.new and SMOPNATIVEint are not identifiers...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • misc/sm0p/sm0p.pm

    r21217 r21220  
    1616    <node_empty> { make $<node_empty> ~ '' } 
    1717    || <node_result> { make $<node_result> ~ '' } 
     18    || <node_move_capturize> { make $<node_move_capturize> ~ '' } 
    1819    || <node_capturized> { make $<node_capturized> ~ '' } 
    1920    || <node_full> { make $<node_full> ~ '' } 
     
    3940} 
    4041 
     42 
     43token node_move_capturize { 
     44    <ws> SMOP__SLIME__CurrentFrame '.' move_capturize '(' 
     45    <ws> <capturize> <ws> ')' <ws> ';' <ws> 
     46    { make 'SMOP_DISPATCH(interpreter, SMOP__SLIME__Node, SMOP__ID__new, ' 
     47      ~ ' SMOP__NATIVE__capture_create(interpreter, SMOP__SLIME__Node, NULL, (SMOP__Object*[]){' 
     48      ~ ' SMOP__ID__responder, SMOP_REFERENCE(interpreter,(SMOP__Object*)SMOP_RI(SMOP__SLIME__CurrentFrame)), ' 
     49      ~ ' SMOP__ID__identifier, SMOP_REFERENCE(interpreter,SMOP__ID__move_capturize), ' 
     50      ~ ' SMOP__ID__capture, SMOP__NATIVE__capture_create(interpreter, SMOP__SLIME__CurrentFrame, ' 
     51      ~ ' (SMOP__Object*[]){' ~ $<capturize> ~ ',NULL}, NULL) , NULL  }))' } 
     52} 
     53 
    4154token node_capturized { 
    4255    <ws> <responder> '.' <identifier> '(' 
     
    7588 
    7689token positionals { 
    77     <identifier> 
     90  [ <identifier> 
    7891    [ 
    7992   ||  <ws> \, <ws> <positionals> 
     
    8295        { make 'SMOP_REFERENCE(interpreter,' ~ $<identifier> ~ '), NULL' } 
    8396    ] 
     97  ]||[ <nativeint> 
     98    [ 
     99   ||  <ws> \, <ws> <positionals> 
     100        { make $<nativeint> ~ ', ' ~ $<positionals>  } 
     101   ||  <ws> 
     102        { make $<nativeint> ~ ', NULL' } 
     103    ]] 
    84104} 
    85105 
     
    110130 
    111131token identifier { 
    112     <capturize> { make $<capturize> ~ '' } 
    113  ||'$' <name> { make $<name> ~ '' } 
     132   '$' <name> { make $<name> ~ '' } 
    114133 ||<idconst> { make $<idconst> ~ ''} 
    115134 ||<name> { make $<name> ~ '' } 
    116  ||<nativeint> { make $<nativeint> ~ '' } 
    117135} 
    118136