All pastes #470589 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-04 11:12 UTC
rendered paste body
 lexical syntax

    ~[\"]*                     -> FreeText                                                        
      [\ ]                       -> FreeText                                                          
    [\ \t\n]                  -> LAYOUT                                                        
    "//" ~[\n]* [\n]       -> LAYOUT                                                     

  lexical restrictions                                                                          
                                                   
    FreeText  -/- [\ ] 

 context-free restrictions                                                                   
    LAYOUT? -/- [\ \t\12\n\r]  


context-free syntax

  "\"" FreeText "\""                               -> QuotedText  {cons("QuotedText")}


problem: leading layout within the quotes (e.g. "  bla") is considered layout, whereas trailing layout (e.g. "bla   ") is preserved. I want the leading layout to be preserved in the resulting string as well...