home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11744 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  2.0 KB

  1. Xref: sparky comp.lang.c++:11744 comp.editors:1848 comp.compilers:1275
  2. Newsgroups: comp.lang.c++,comp.editors,comp.compilers
  3. Path: sparky!uunet!gatech!news.byu.edu!eff!world!iecc!compilers-sender
  4. From: xorian@solomon.technet.sg (Xorian Technologies)
  5. Subject: Re: Looking for editors and parsers for C++
  6. Reply-To: xorian@solomon.technet.sg (Xorian Technologies)
  7. Organization: National University of Singapore
  8. Date: Mon, 27 Jul 1992 01:43:18 GMT
  9. Approved: compilers@iecc.cambridge.ma.us
  10. Message-ID: <92-07-096@comp.compilers>
  11. References: <92-07-076@comp.compilers>
  12. Keywords: C++, parse
  13. Sender: compilers-sender@iecc.cambridge.ma.us
  14. Lines: 37
  15.  
  16. Jan Skarvall write :-
  17.  
  18. : I am also interested in parsers and parser generators for C++ for the same
  19. : reasons.
  20.  
  21. Our parser generator LADE is able to generate a C++ parser with 0
  22. shift-reduce and 0 reduce-reduce conflicts.  We are also in the process of
  23. writing a C++ parser which will be ready soon.
  24.  
  25. : We are currently using C++ 2.1.
  26.  
  27. As far as the parser is concerned there is little difference between 2.1
  28. and 3.0, since template and exception handling has more impact on the code
  29. generation part.
  30.  
  31. : [Jim Roskind's yacc C++ parser is available in the compilers archives, but
  32. : I'm not sure that'd much help for building an editor. -John]
  33.  
  34. The problem with Roskind's grammar is that in order to resolve the many
  35. significant ambiguities in C++, Roskind "macro expanded" the productions
  36. involved. While he resolved most of the conflicts, he created monster of a
  37. grammar which bears little resemblance to the specification and is
  38. extremely difficult to use in practice. Based on our own experience and
  39. that of our clients, we strongly recommend against the Roskind grammar for
  40. anything more than simple syntactic checking.
  41.  
  42. KG Loh
  43. Xorian Technologies Pte Ltd
  44. 389A Balestier Road
  45. Singapore 1232
  46. Republic of Singapore
  47. Tel: (65) 255-7151
  48. Fax: (65) 253-7709
  49. email: xorian@solomon.technet.sg
  50. -- 
  51. Send compilers articles to compilers@iecc.cambridge.ma.us or
  52. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  53.