Re: LL(1) and common-heads... (Michael Parkes)
12 Jan 1996 17:25:22 -0500

          From comp.compilers

Related articles
LL(1) and common-heads... (1995-12-28)
LL(1) and common-heads... (Gabor DEAK JAHN) (1995-12-30)
Re: LL(1) and common-heads... (1996-01-12)
Re: LL(1) and common-heads... (1996-01-14)
Re: LL(1) and common-heads... (U-E59264-Osman Buyukisik) (1996-01-15)
| List of all articles for this month |

From: (Michael Parkes)
Newsgroups: comp.compilers
Date: 12 Jan 1996 17:25:22 -0500
Organization: Sense Networking Seattle (
References: 95-12-143
Keywords: assembler, parse says...
> Hi all, I've written an actual assembler for this new OS that
>a bunch of us are trying to get off the ground (originally from
>r.g.p.). Anyhow, the assembler works fine, but I'm not using any
>parsing algorithms like LL(1) or SLR. I was wondering if it would be
>of any use writing it using LL(1). Or would anyone suggest a better


It looks to me like you are using the wrong tool for the job. If
I understand you correctly this is a semantic problem and should be dealt
with as such. Try using and attribute grammar that supports 'sparse'
tables. This will allow you to define the valid semantic mappings and
will vastly simplify the syntax processing. The basic job should only
require about 2,000 lines.



Post a followup to this message

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