Newbie: Does an LR(k) parser compute the FIRST set?

Etienne Gagnon <egagnon@sablevm.org>
14 Feb 2006 10:22:31 -0500

          From comp.compilers

Related articles
Newbie: Does an LR(k) parser compute the FIRST set? franku@fmi.uni-passau.de (Ulrich Frank) (2006-02-12)
Re: Newbie: Does an LR(k) parser compute the FIRST set? schmitz@i3s.unice.fr (Sylvain Schmitz) (2006-02-14)
Newbie: Does an LR(k) parser compute the FIRST set? egagnon@sablevm.org (Etienne Gagnon) (2006-02-14)
Re: Newbie: Does an LR(k) parser compute the FIRST set? franku@fmi.uni-passau.de (Ulrich Frank) (2006-02-14)
| List of all articles for this month |
From: Etienne Gagnon <egagnon@sablevm.org>
Newsgroups: comp.compilers
Date: 14 Feb 2006 10:22:31 -0500
Organization: Compilers Central
References: 06-02-089 06-02-090
Keywords: parse
Posted-Date: 14 Feb 2006 10:22:31 EST

Hi Ulrich,


In SableCC, the FIRST set is computed using the Grammar.computeFirst()
method in file src/org/sablecc/sablecc/Grammar.java.


You should investigate using Eclipse (http://eclipse.org) to browse the
source code of SableCC, as Eclipse provides many useful features for
understanding Java source code, such as visual class hierarchy,
declaration finder, etc.


Note that you can ask SableCC related questions on the SableCC mailing
list at http://sablecc.org/lists/control/listinfo/sablecc-user/ .


Have fun!


Etienne


Ulrich Frank wrote:
> - Especially in practical aspects: if so, can I get access to the
> FIRST set in an (LA)LR Parser like JavaCUP or SableCC?


--
Etienne M. Gagnon, Ph.D. http://www.info2.uqam.ca/~egagnon/
SableVM: http://www.sablevm.org/
SableCC: http://www.sablecc.org/


Post a followup to this message

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