home bbs files messages ]

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

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

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

   Message 1,810 of 2,753   
   Kaz Kylheku to ng2010@att.invalid   
   Re: Making semicolons optional moves LAL   
   08 Feb 10 21:05:23   
   
   From: kkylheku@gmail.com   
      
   On 2010-02-06, ng2010  wrote:   
   > For a hypothetical programming language that is LALR(1) and uses   
   > semicolons as statement terminators, would a change that makes semicolons   
   > only required on multi-statement lines and using the newline as an   
   > implicit statement terminator make the language LALR(2)?   
      
   The 2 in LALR(2) means ``look ahead two positions in the token stream'', not   
   ``look ahead for two possible kinds of tokens''.   
      
   :)   
      
   --- 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