Article View: comp.sys.transputer
Article #1893Re: lex and yacc specification for OCCAM-2
From: M.L.M.Veraart
Date: Fri, 22 Jan 1993 08:08
Date: Fri, 22 Jan 1993 08:08
42 lines
2210 bytes
2210 bytes
pete@ohm.york.ac.uk (Pete French) writes: >From article <1jeekqINN984@samson.informatik.uni-kiel.dbp.de>, by nhk@informatik.uni-kiel.dbp.de (Nils-Henner Krueger): >> Hi, >> >> I'm looking for a lex and yacc specification for OCCAM-2. >> Does anybody know where it could be available? >yacc for OCCAM2 is v.hard - you are probably better off writing your own >parser. Its the indentation which makes it difficult, I havent yet seen a >way of doing this that actually works, and if you think of one then let >me know ! >-pete french. >PS: If you do think of one the make sure it will handle VALOF properly - this > is the main problem with the indentation stuff as far as I can see. >-- >-Pete French. (the -bat. ) -+ Are you in the militia ? >Adaptive Systems Engineering | > +- Tuktusiuriagatigitqingnapinngitkyptinnga! Pete, The problem of the indentation can be solved by writing your own LEX, the scanner part of the compiler. I have written an OCCAM-1 compiler for the MSDOS environment. And it works. Your remark about the VALOF function will be a small problem because of the multiple result values, but I think it can be done with a little trick in the parser section. Mario Veraart -- Mario Veraart TNO Physics and Electronics Laboratory email: rioj7@fel.tno.nl The Hague The Netherlands "If all else fails, show pretty pictures and animated videos, and don't talk about performance", David Bailey -- Mario Veraart TNO Physics and Electronics Laboratory email: rioj7@fel.tno.nl The Hague The Netherlands "If all else fails, show pretty pictures and animated videos, and don't talk about performance", David Bailey
Technical Details
Message-ID:
<1993Jan22.080829.13127@fel.tno.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!tnofel!felfs!rioj7References:
<1jeekqINN984@samson.informatik.uni-kiel.dbp.de> <1993Jan19.143633.14538@ohm.york.ac.uk>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.transputer Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!tnofel!felfs!rioj7 From: rioj7@fel.tno.nl (M.L.M.Veraart) Subject: Re: lex and yacc specification for OCCAM-2 Organization: TNO Physics and Electronics Laboratory Date: Fri, 22 Jan 93 08:08:29 GMT Message-ID: <1993Jan22.080829.13127@fel.tno.nl> References: <1jeekqINN984@samson.informatik.uni-kiel.dbp.de> <1993Jan19.143633.14538@ohm.york.ac.uk> Lines: 42