Re: Arithmetic expressions w. recursive descent parser?

=?ISO-8859-1?Q?J=FCrgen_Kahrs?= <Juergen.Kahrs@vr-web.de>
28 Jan 2006 15:13:11 -0500

          From comp.compilers

Related articles
Arithmetic expressions w. recursive descent parser? bmildh@linuxmail.org (2006-01-26)
Re: Arithmetic expressions w. recursive descent parser? Juergen.Kahrs@vr-web.de (=?ISO-8859-1?Q?J=FCrgen_Kahrs?=) (2006-01-28)
Re: Arithmetic expressions w. recursive descent parser? torbenm@app-2.diku.dk (2006-01-28)
Re: Arithmetic expressions w. recursive descent parser? NOSPAMrszeflerNOSPAM@murator.com.pl (RobertSzefler) (2006-01-28)
| List of all articles for this month |

From: =?ISO-8859-1?Q?J=FCrgen_Kahrs?= <Juergen.Kahrs@vr-web.de>
Newsgroups: comp.compilers
Date: 28 Jan 2006 15:13:11 -0500
Organization: Compilers Central
References: 06-01-078
Keywords: arithmetic, parse
Posted-Date: 28 Jan 2006 15:13:11 EST

bmildh@linuxmail.org wrote:


> The problem is that I cant get the implementation right with +,- in
> combination w. numbers starting w. + or -, eg. -45, +3, etc.
> I would appreciate any help, pointers, tips, on how to get the + and -
> operator correctly implemented with numbers that could start with + or
> - .


I think this problem is solved in PL/0,
the tiny compiler by Niklaus Wirth which
was published in 1976:


    http://www.saar.de/~awa/images/pl0-12.gif
    http://www.saar.de/~awa/pl0-synt.htm


This web page also contains Java source code.



Post a followup to this message

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