YACC --> Parser
Both LEX and YACC take a language definition as input. Typically LEX is
used for the bottom end of the full language and YACC is used for the the
top end. The reason LEX and YACC are two separate tools has more to do
with unix programming style than any particular requirement.
Used together you get a tool that takes input and generates output. The
resulting tool might be a parser, but that's up to you.
Definitions of terms is important here, only to the extent that it ensures
we are all talking about the same thing. To me, a parser is not a
compiler. A parser just recognizes the defined language. A compiler
generates some sort of transformed output. Clearly the parser generate
outputs, but these are for internal use, so that's how I differentiate the
two.
IMNOSHO saying you can't build a PL/1 compiler using C is untrue, at best.
I can write C code to emulate any PL/1 construct. Whether or not writing
a PL/1 compiler in C will produce a compiler that performs well and
generates well optimized code is open for discussion. It depends more on
the talents of the compiler writers than the particular development tool.
Regards,
Steven
--
----------------------------------------------------------------------
"Steven Levine" MR2/ICE 2.67 #10183 Warp4.something/14.100c_W4
www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST)
----------------------------------------------------------------------
=====================================================
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".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 15 |
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.