home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / transput / 1414 < prev    next >
Encoding:
Text File  |  1993-01-22  |  2.1 KB  |  53 lines

  1. Newsgroups: comp.sys.transputer
  2. Path: sparky!uunet!mcsun!sun4nl!tnofel!felfs!rioj7
  3. From: rioj7@fel.tno.nl (M.L.M.Veraart)
  4. Subject: Re: lex and yacc specification for OCCAM-2
  5. Organization: TNO Physics and Electronics Laboratory
  6. Date: Fri, 22 Jan 93 08:08:29 GMT
  7. Message-ID: <1993Jan22.080829.13127@fel.tno.nl>
  8. References: <1jeekqINN984@samson.informatik.uni-kiel.dbp.de> <1993Jan19.143633.14538@ohm.york.ac.uk>
  9. Lines: 42
  10.  
  11. pete@ohm.york.ac.uk (Pete French) writes:
  12.  
  13. >From article <1jeekqINN984@samson.informatik.uni-kiel.dbp.de>, by nhk@informatik.uni-kiel.dbp.de (Nils-Henner Krueger):
  14. >> Hi,
  15. >> 
  16. >> I'm looking for a lex and yacc specification for OCCAM-2.
  17. >> Does anybody know where it could be available?
  18.  
  19. >yacc for OCCAM2 is v.hard - you are probably better off writing your own
  20. >parser. Its the indentation which makes it difficult, I havent yet seen a
  21. >way of doing this that actually works, and if you think of one then let
  22. >me know !
  23.  
  24. >-pete french.
  25.  
  26. >PS: If you do think of one the make sure it will handle VALOF properly - this
  27. >    is the main problem with the indentation stuff as far as I can see.
  28. >-- 
  29. >-Pete French. (the -bat. )    -+     Are you in the militia ?
  30. >Adaptive Systems Engineering   |
  31. >                               +- Tuktusiuriagatigitqingnapinngitkyptinnga!
  32.  
  33. Pete,
  34.  
  35. The problem of the indentation can be solved by writing your own LEX,
  36. the scanner part of the compiler. I have written an OCCAM-1 compiler
  37. for the MSDOS environment. And it works.
  38. Your remark about the VALOF function will be a small problem because
  39. of the multiple result values, but I think it can be done with a little
  40. trick in the parser section.
  41.  
  42. Mario Veraart
  43. --
  44. Mario Veraart                  TNO Physics and Electronics Laboratory
  45. email: rioj7@fel.tno.nl        The Hague       The Netherlands
  46. "If all else fails, show pretty pictures and animated videos, 
  47.  and don't talk about performance",  David Bailey
  48. -- 
  49. Mario Veraart                  TNO Physics and Electronics Laboratory
  50. email: rioj7@fel.tno.nl        The Hague       The Netherlands
  51. "If all else fails, show pretty pictures and animated videos, 
  52.  and don't talk about performance",  David Bailey
  53.