SCOUG-Programming Mailing List Archives
Return to [ 15 |
April |
2005 ]
<< Previous Message <<
>> Next Message >>
Content Type: text/plain
> "So because LEX and YACC output a C intermediate, the
> untimate compiler can only process C constructs? I guess that
> the g77 and g95 parts of GCC are figments of my
> imagination-even though they manage to compile my old
> dusty deck FORTRAN programs. I guess that I must also
> assume that the Ada and the Java front ends to GCC are also
> incapable of compiling real Ada and Java code."
>
> Greg,
>
> Does an apple look like an orange to you? LEX & YACC, the
> original subjects raised, produce output that goes to a C
> compiler. That implies that the "compiled" source is C even if
> the "inputed" language is not. What happens if the inputed
> language allows expressions, builtin functions, and data types
> not "native" to C?
Lynn,
I am calling for a referee. As I understand it, the input to
LEX is a GRAMMAR. The C output of LEX, when combined with YACC
produces a PARSER. (Referee--correct me here if I am wrong.)
So you are saying that it is impossible to produce a PARSER
for PL/I in a language such as C.
--
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".
=====================================================
<< 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.
|