-----Original Message-----
From: cctalk [mailto:cctalk-bounces at
classiccmp.org] On Behalf Of Chuck
Guzis
Sent: 20 February 2015 23:00
To: General at
classiccmp.org; Discussion at classiccmp.org:On-Topic and Off-
Topic Posts
Subject: Re: Pascal not considered harmful - was Re: Rich kids are into
COBOL
On 02/20/2015 02:32 PM, Ali wrote:
Excuse my ignorance but then how is a compiler
written? I always
thought that you would need to know op codes and assembler to write a
compiler.
I.E.
you can't write and efficient compiler by
using a high level language.
Almost all , so there exceptions, modern compliers are written in a high
level language. Most use LEXX and YACC or their modern equivalents to
generate the program fragments needed to generate the code.
Uh... LEX and YACC are used for the frontend side. They do not have
anything to do with code generation. :-)
Using LEX and YACC, you will still need to write the code that actually
generates the output from the whole thing. LEX and YACC essentially
implements the parsing of the source code for you.
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol