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,902 of 2,753   
   kuangpma to All   
   Testing strategy for compiler   
   16 Jun 10 07:18:20   
   
   From: kuangpma@gmail.com   
      
   Folks,   
      
   Say I have written a hand crafted lexer/parser/code gen.... to make a   
   complete compiler. The question is how to test it? Since user can have   
   millions possible ways of writing their program (with many different   
   types of syntax errors) and it is difficult to test all the possible   
   cases. So is there any good ways to test the compiler? How do those   
   big guys (MS/Borland...) tested their compiler? Thanks.   
   [Doing a thorough test of a manually written parser is extremely hard,   
   particularly making sure that it rejects everything invalid that you   
   might not have thought of.  That's one of the main reasons to use scanner   
   and parser generators, you can be reasonably confident that the language   
   it accepts matches the grammar you gave it. -John]   
      
   --- 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