said:
>
> >So if PL/I cannot be processed by LEX and YACC, then this must be an
> >admission that the PL/I language cannot be specified by a BNF grammar.
>
> This is not quite true. My understanding is that YACC is a lalr(1) parser
> with some extended backtracking to avoid shift/reduce conflicts. LEX is
> basically a regular expression recognizer. This means the combo can
> define languages that a typical BNF can not. Of course there are are a
> number variations of BNF so one does need to be somewhat specific about
> which BNF is not sufficient.
Which goes a bit beyond what I really remember about compilers. My dragon
book has been stashed away in a box for several years. And my last real
effort in trying to understand compilers was tinkering with Ron Cain's
Small-C for the 8080 and the port to the 8086 that James Hendrix did in
Doctor Dobb's Journal.
> >Now the gotcha for OS/2 users: pl1-1.exe is meant to integrate with the
> >4.x versions of the Gnu Compiler Collection. The current GCC in EMX is
> >3.2.1 and the most recent GCC on my FreeBSD and Linux boxes is 3.3.
>
> Innotek's 3.3.5 for OS/2 is good enough to build a working Mozilla. What
> special features of 4.x does the generated pl1-1.exe require?
I'm not sure. I only skimmed the dcoumentation that I downloaded from
SourceForge. The 4.x suite is recommened, but I don't recall if it is
required. As I mentioned before, 3.3.x is the most common version on my
Linux, OS X, and FreeBSD boxes; however, one of my bleeding edge BSD
setups has version 3.4.
--
Gregory W. Smith (WD9GAY) gsmith@well.com
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".
For problems, contact the list owner at
"postmaster@scoug.com".
=====================================================
Return to [ 30 |
April |
2005 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.