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,744 of 2,753   
   Andy Walker to All   
   Re: Can syntax be enough? No need of sem   
   19 Sep 09 01:36:00   
   
   From: news@cuboid.co.uk   
      
   I wrote:   
   > 	Never seen a reasonable two-level grammar?  Fi!   
   > [Good point.  So why don't we use them? -John]   
      
   	Good question.  Some answers:   
      
     (a)	We don't know how to parse them.  So we have first to convert   
   	them into simpler grammars, which somewhat defeats the point.   
      
     (b)	It's hard work to write one.  People who invent languages seem   
   	to prefer to specify an EBNF grammar, or similar, and then add   
   	the semantics by saying in natural language what the rules are.   
   	The result is that no-one knows what C, for example, really is,   
   	as there is no adequately formal specification.  Not since the   
   	days when the formal spec was DMR's compiler.   
      
     (c)	Fear.   
      
   --   
   Andy Walker   
   Nottingham   
      
   --- 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