home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!rutgers!faatcrl!iecc!compilers-sender
- From: bburshte@pyramid.com (Boris Burshteyn)
- Newsgroups: comp.compilers
- Subject: Re: Parsing wars
- Keywords: parse, LR(1)
- Message-ID: <92-09-036@comp.compilers>
- Date: 3 Sep 92 17:53:15 GMT
- References: <92-09-027@comp.compilers> <92-09-006@comp.compilers>
- Sender: compilers-sender@iecc.cambridge.ma.us
- Reply-To: bburshte@pyramid.com (Boris Burshteyn)
- Organization: Compilers Central
- Lines: 20
- Approved: compilers@iecc.cambridge.ma.us
-
- Andrew Bromage writes:
- >Pushing nonterminals onto the token stream, however, is a new one to me.
- >I suppose that this would optimise the GOTO tables a bit, but there are
- >better ways of doing this, like creating distinct reduce and lookahead
- >states (IMHO).
-
- The USSA parser generator builds tables which make no distinction between
- terminals and nonterminals. In most cases tables are better or comparable
- with YACC. USSA also builds tables for a generator which produces sample
- sentences from the described language, like
-
- int ident() { int ident = function_call; }
-
- These sentences can be accepted due to equivalent treatment of terminals
- and nonterminals.
-
- Thanks - Boris Burshteyn (bburshte@pyramid.com)
- --
- Send compilers articles to compilers@iecc.cambridge.ma.us or
- {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
-