home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.programming      Programming issues that transcend langua      57,431 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 56,961 of 57,431   
   Stefan Ram to Stefan Ram   
   Re: Scanning   
   21 Jan 23 15:00:35   
   
   From: ram@zedat.fu-berlin.de   
      
   ram@zedat.fu-berlin.de (Stefan Ram) writes:   
   >The output follows below. Most tests pass, but there is   
   >still one error. (The error is: When the input is a sequence   
   >of blanks, it produces [par], but should produce nothing.)   
      
     In this case, the error was not in my code but in my   
     assumptions. In fact, TeX behaves exactly this way too.   
     When the input is empty, the output is empty (no tokens),   
     but when the input is exactly one space, this yields the   
     one token "\par". This is because an "\n" is added to   
     the last line if it was missing. The space is ignored.   
     This gives an "\n" at the start of the line, and a "\n"   
     at the start of a line yields the "\par" token.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca