[comp.compilers] PL/1 grammar

corondan@eds.com (George A. Corondan) (05/07/91)

Does anyone have the grammar to PL/I?  Yacc+lex prefered but i'll take
anything.  Thank you.

-- 
George A. Corondan        Inet:corondan@eds.com
Electronic Data Systems   Uucp:{uunet|sun|sharkey}!edsews!corondan 
750 Tower Drive           Voice: (313)265-7012
Troy, MI 48098-7019       FAX: (313)265-5770
[Good luck, PL/I has no reserved words so it's hard to handle with yacc and
lex, e.g. IF IF = THEN THEN IF = ELSE; -John]
-- 
Send compilers articles to compilers@iecc.cambridge.ma.us or
{ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.

toebes@sas.com (John Toebes) (05/08/91)

If you are going to do anything with PL/I, the definitive source is the
TSI compiler from Translation Systems Incorporated.  With the exception
of the IBM offering, all of the PL/I (Subset G) compilers that I have
encountered have been based on the TSI implementation.  As has already been
noted here, PL/I does not have any reserved words making yacc/lexx a
formidable task.  The TSI technology is well tuned to PL/I and most
importantly has all the aspects of the language layed out.

I have no association with TSI but have worked on a PL/I compiler from
the TSI code in the past.
--
========= Working for but not representing SAS Institute Inc. ============
John A. Toebes, VIII     toebes@sas.com

-- 
Send compilers articles to compilers@iecc.cambridge.ma.us or
{ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.