I thought of writing the case by hand and having the macros just generating of 
branches, like:
    
    
    case ch
    of '!':
      # handle special case
    simpleToken( '-', tkMinus )
    simpleToken( '+', tkPlus )
    ...
    
    Run

Agreed that here a table is more elegant and that's what I'm using now but 
still curious about how the macro solution would be to learn.. :)

Reply via email to