Re: [QUERY] A "ignorant newbie" question about compiler-writing.

kanze@gabi-soft.fr (J. Kanze)
16 Feb 1997 22:54:08 -0500

          From comp.compilers

Related articles
[7 earlier articles]
Re: [QUERY] A "ignorant newbie" question about compiler-writing. mw@ipx2.rz.uni-mannheim.de (1997-01-30)
Re: [QUERY] A "ignorant newbie" question about compiler-writing. darius@phidani.be (Darius Blasband) (1997-01-30)
Re: [QUERY] A "ignorant newbie" question about compiler-writing. kanze@gabi-soft.fr (J. Kanze) (1997-01-30)
Re: [QUERY] A "ignorant newbie" question about compiler-writing. iainf@bristol.st.com (1997-02-07)
Re: [QUERY] A "ignorant newbie" question about compiler-writing. mff@research.att.com (Mary Fernandez) (1997-02-11)
Re: [QUERY] A "ignorant newbie" question about compiler-writing. dennis@netcom.com (1997-02-16)
Re: [QUERY] A "ignorant newbie" question about compiler-writing. kanze@gabi-soft.fr (1997-02-16)
Re: [QUERY] A "ignorant newbie" question about compiler-writing. nr@adder.cs.virginia.edu (Norman Ramsey) (1997-02-20)
Re: [QUERY] A "ignorant newbie" question about compiler-writing. cfc@world.std.com (1997-02-22)
Re: [QUERY] A "ignorant newbie" question about compiler-writing. fjh@mundook.cs.mu.OZ.AU (1997-02-23)
Re: [QUERY] A "ignorant newbie" question about compiler-writing. cartegw@humsci.auburn.edu (1997-02-27)
Re: [QUERY] A "ignorant newbie" question about compiler-writing. kanze@gabi-soft.fr (1997-03-14)
| List of all articles for this month |
From: kanze@gabi-soft.fr (J. Kanze)
Newsgroups: comp.compilers
Date: 16 Feb 1997 22:54:08 -0500
Organization: GABI Software, Sarl.
References: 97-01-013 97-01-236 97-02-038
Keywords: parse, Pascal

iainf@bristol.st.com (Iain A F Fleming) writes:


> kanze@gabi-soft.fr (J. Kanze) wrote:


> > even Pascal requires some hacks.


> In my recollection, only in parsing (0.1 vs 0..1), though "with"
> clauses can be a bit tricky regarding sematic analysis. (though I may
> be wrong, as I haven't worked on a pascal compiler for about 7 years).


Actually, the specific case I was thinking about was the distinction
between an assignment statement and a procedure call. I actually think
that you could write an LR grammar which would work even if the scanner
returned user symbol in both cases, but it would be complicated. The
usual solution is for the scanner to do a symbol table lookup, and
return a different token if the symbol is defined as a procedure. In
short, a hack.


--
James Kanze +33 (0)1 39 55 85 62 email: kanze@gabi-soft.fr
GABI Software, Sarl., 22 rue Jacques-Lemercier, 78000 Versailles, France
--


Post a followup to this message

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