home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / c / 16498 < prev    next >
Encoding:
Internet Message Format  |  1992-11-14  |  2.1 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!haven.umd.edu!darwin.sura.net!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!unidui!Germany.EU.net!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!frmop11!barilvm!bimacs!fine
  2. From: fine@bimacs.BITNET (Linochka Fine)
  3. Newsgroups: comp.lang.c
  4. Subject: LEX and Borland C++ 3.1 incompatibility.
  5. Message-ID: <4448@bimacs.BITNET>
  6. Date: 12 Nov 92 17:10:02 GMT
  7. References: <1dbpe8INNcop@frigate.doc.ic.ac.uk> <a_rubin.720993308@dn66> <1ddvpdINNc3d@frigate.doc.ic.ac.uk>
  8. Organization: Math department, Bar-Ilan University, Ramat-Gan, ISRAEL
  9. Lines: 30
  10.  
  11.  
  12.         Hi everybody !
  13.  
  14.   Since in my local host nobody was able to answer my question, I post it
  15. here. I made my project using YACC and LEX for PC, and MSC 6.0. It worked
  16. fine. But after some time I've decided to transfer it to Borland C Compiler,
  17. since, unfortunately, most of PC C programmers prefer it (although I am sure,
  18. that MicroSoft is best), and so it will be more easy to maintenance it by
  19. the next generation of students...  After recompiling the sources I've got a
  20. pile of warnings in the my "yylex.c" file, but I just didn't pay attention
  21. to it, since MSC C also looked unhappy when it compiled it. But when I
  22. tried to run the program, it produced something unreasonable... After some
  23. debugging I've released that the problem is in the "yylex" function. I wrote
  24. simple test in LEX, and it didn't work properly too. It seems, that the
  25. problems are in the "yylook" subroutine, and they are caused from the
  26. "Suspicious pointer conversion" warning. I.e., I think, that when it
  27. tries to get values from the tables (offsets etc), it get them wrong. I even
  28. tried to do some hacking on "ncform.c" LEX driver in order to fix it, but
  29. unsuccessfully. (probably the code is too complicated for me).
  30.  
  31.   So, if anybody was faced with this problem, or even has alternative version
  32. of LEX, please e-mail me. I use the fully undocumentated LEX and YACC,
  33. and I even don't remember from where did I get them. The LEX seems to be
  34. compiled by Microsoft compiler (the message "Microsoft Run-Time Library 1990"
  35. in the code).
  36.  
  37.   Thank's in advance, hoping to receive responds,
  38.         Mosha.
  39.  
  40.  
  41.