Re: Creating my own language

"Kevin Szabo" <>
8 Oct 2000 22:29:41 -0400

          From comp.compilers

Related articles
Creating my own language (2000-09-21)
Re: Creating my own language (2000-09-25)
Re: Creating my own language (Kevin Szabo) (2000-10-08)
| List of all articles for this month |

From: "Kevin Szabo" <>
Newsgroups: comp.compilers
Date: 8 Oct 2000 22:29:41 -0400
Organization: Nortel Networks (Ottawa, Ontario, Canada)
References: 00-09-161
Keywords: books

  <> 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.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.