Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #842
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.misty.com!news.iecc.com!.POSTED!nerds-end |
|---|---|
| From | James Harris <james.harris.1@gmail.com> |
| Newsgroups | comp.compilers |
| Subject | Re: Compiling expressions |
| Date | Sun, 6 Jan 2013 00:57:52 -0800 (PST) |
| Organization | Compilers Central |
| Lines | 21 |
| Sender | johnl@iecc.com |
| Approved | comp.compilers@iecc.com |
| Message-ID | <13-01-019@comp.compilers> (permalink) |
| References | <12-12-035@comp.compilers> <13-01-013@comp.compilers> |
| NNTP-Posting-Host | news.iecc.com |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | leila.iecc.com 1357496391 20599 64.57.183.58 (6 Jan 2013 18:19:51 GMT) |
| X-Complaints-To | abuse@iecc.com |
| NNTP-Posting-Date | Sun, 6 Jan 2013 18:19:51 +0000 (UTC) |
| Keywords | parse |
| Posted-Date | 06 Jan 2013 13:19:51 EST |
| X-submission-address | compilers@iecc.com |
| X-moderator-address | compilers-request@iecc.com |
| X-FAQ-and-archives | http://compilers.iecc.com |
| Xref | csiph.com comp.compilers:842 |
Show key headers only | View raw
On Jan 3, 9:33 pm, James Harris <james.harri...@gmail.com> wrote:
A small correction was needed, as follows, as I had omitted the loop-
out condition.
> function value_parse(op1)
> v1 = value() //identifier or literal
> while true
> op2 = current token or dummy end of expression
> if lparen //parens of a function call or similar
> v1 = args_parse(op2)
> consume rparen
> else if prec(op2) > prec(op1)
> if incompatible(op1, op2)
> raise "incompatible - grouping parens needed"
> v1 = node(POSTFIX_OP, v1)
else
break
> return v1
James
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Compiling expressions James Harris <james.harris.1@gmail.com> - 2012-12-29 05:11 -0800
Re: Compiling expressions glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-12-29 23:33 +0000
Re: Compiling expressions James Harris <james.harris.1@gmail.com> - 2013-01-02 09:04 -0800
Re: Compiling expressions "matzebraun@googlemail.com" <matzebraun@googlemail.com> - 2013-01-03 07:13 -0800
Re: Compiling expressions Horst von Brand <vonbrand@inf.utfsm.cl> - 2013-01-14 16:31 -0300
Re: Compiling expressions "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2012-12-30 08:58 +0100
Re: Compiling expressions James Harris <james.harris.1@gmail.com> - 2013-01-02 09:10 -0800
Re: Compiling expressions James Harris <james.harris.1@gmail.com> - 2013-01-03 12:01 -0800
Re: Compiling expressions "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2013-01-04 10:18 +0100
Re: Compiling expressions torbenm@diku.dk (Torben Ægidius Mogensen) - 2013-01-03 16:49 +0100
Re: Compiling expressions James Harris <james.harris.1@gmail.com> - 2013-01-03 13:33 -0800
Re: Compiling expressions James Harris <james.harris.1@gmail.com> - 2013-01-06 00:57 -0800
Re: Compiling expressions "James Harris \(es\)" <james.harris.1@gmail.com> - 2013-03-07 11:11 +0000
csiph-web