Re: Grammar ambiguity

"Jocelyn Coulmance" <j.coulmance@itecor.com>
3 Mar 2000 09:01:46 -0500

          From comp.compilers

Related articles
[7 earlier articles]
Re: Grammar ambiguity cbrtjr@ix.netcom.com (Charles E. Bortle, Jr.) (2000-02-13)
Re: Grammar ambiguity j.coulmance@itecor.com (Jocelyn Coulmance) (2000-02-19)
Re: grammar ambiguity wclodius@aol.com (2000-02-21)
Re: grammar ambiguity world!cfc@uunet.uu.net (Chris F Clark) (2000-02-27)
Re: Grammar ambiguity joachim.durchholz@halstenbach.com.or.de (Joachim Durchholz) (2000-02-27)
Re: grammar ambiguity joachim.durchholz@halstenbach.com.or.de (Joachim Durchholz) (2000-02-27)
Re: Grammar ambiguity j.coulmance@itecor.com (Jocelyn Coulmance) (2000-03-03)
Grammar ambiguity ma9vk@bath.ac.uk (Vassilis Kostakos) (2000-03-06)
Re: Grammar ambiguity torbenm@diku.dk (2000-03-11)
Re: Grammar ambiguity rodrigo.ferreira@dcc.unicamp.br (Rodrigo Augusto Barbato Ferreira) (2000-03-11)
| List of all articles for this month |

From: "Jocelyn Coulmance" <j.coulmance@itecor.com>
Newsgroups: comp.compilers
Date: 3 Mar 2000 09:01:46 -0500
Organization: Guest of France-Teaser
References: 00-02-015 00-02-049 00-02-147
Keywords: parse

Joachim Durchholz <joachim.durchholz@halstenbach.com.or.de> a écrit


> > p1
> > (a+b).p2 -- 2 different instructions since there is a line
> > termination in between
> >
> > p1; (a+b).p2 -- idem since there is a semicolon
> >
> > p1(a+b).p2 -- only one instruction
>
> Hmm... yes, I've been thinking along these lines. Unfortunately, this
> prevents me from having multi-line expressions. I've tried to work
> around this, but the results were not encouraging.


In this case, I would use an escape sequence, say "...", before line
termination:


p1 ...
(a+b).p2 -- only one instruction


Regards
Jocelyn


Post a followup to this message

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