www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - writing compiler

↑ ↓ ← "Bill Stanton" <bstanton NOSSPAM.com> writes:
Hi

I'm about to write a compiler for a Basic subset. I was wondering if it was
possible to write it completely in C (including the parsing).
Aug 21 2002
↑ ↓ Pavel Minayev <evilone omen.ru> writes:
On Wed, 21 Aug 2002 23:13:47 -0700 "Bill Stanton" <bstanton NOSSPAM.com> wrote:

 Hi
 
 I'm about to write a compiler for a Basic subset. I was wondering if it was
 possible to write it completely in C (including the parsing).

Yes, it is.
Aug 21 2002
↑ ↓ → "KarL" <someone somewhere.org> writes:
Pavel Minayev <evilone omen.ru> wrote in message
news:CFN374904410105093 news.digitalmars.com...
 On Wed, 21 Aug 2002 23:13:47 -0700 "Bill Stanton" <bstanton NOSSPAM.com>

 Hi

 I'm about to write a compiler for a Basic subset. I was wondering if it


 possible to write it completely in C (including the parsing).

Yes, it is.

Read the old book "prorgamming in the unix environment" by Kernighan and Pike. Good example of using Yacc, Lex. Then buy the Lex and Yacc book. This one has even example on MySql parser.
Aug 27 2002