Related articles |
---|
Creating my own language gods1child@my-deja.com (2000-09-21) |
Re: Creating my own language rohitd@flashmail.com (2000-09-25) |
Re: Creating my own language kszabo@nortelnetworks.com (Kevin Szabo) (2000-10-08) |
From: | "Kevin Szabo" <kszabo@nortelnetworks.com> |
Newsgroups: | comp.compilers |
Date: | 8 Oct 2000 22:29:41 -0400 |
Organization: | Nortel Networks (Ottawa, Ontario, Canada) |
References: | 00-09-161 |
Keywords: | books |
<gods1child@my-deja.com> wrote:
>Want to create my own language (for learning sake) using C++ and
>assembly. any recommeded resources? is this the right place to ask such
>a question? asked in the c++ group, they said i should ask here.
>tnx in advance.
If you just want to see how compilers/interpreters work, and how
to use lex/yacc, I think the chapter on 'program development'
in 'The Unix Programming Environment' by Kernighan and Pike
is excellent. They take you step by step through the effort
of initially building a calculator, one with variables, then
one which generates code and immeidately executes it, and finally
one that generates code and is programmable. The output is
a threaded stack oriented machine (and interpreted) but it
is small enough to be understood and quite useful.
Cheers,
Kevin
Return to the
comp.compilers page.
Search the
comp.compilers archives again.