Article View: comp.unix.programmer
Article #3307Help: How does yacc define it's parsing tables (yyact, yypact ...)?
From: Tom
Date: Fri, 20 Oct 2006 03:00
Date: Fri, 20 Oct 2006 03:00
19 lines
1965 bytes
1965 bytes
Hi, I'm a computer science major graduate student. I'm working on a project to write a customized version of yacc. Now I already can construct the parsing machine from any given grammar. I'm at the last stage to generate a y.tab.c file by incoporating the grammar's parsing machine into y.tab.c tables yyexca, yyact, yypact, yypgo, yyr1, yyr2, yychk, yydef. I was able to figure out how to construct some of these tables by reading y.tab.c generated by yacc. But I'm still confused about how to get some other tables like yyexca, yyact, yypact, yypgo. Can anyone please give me some hint, or tell me what webpage or book I can get help from? Thanks a lot! Puzzled, Tom
Technical Details
Message-ID:
<1161313204.988106.134730@m7g2000cwm.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m7g2000cwm.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: fc89c,6f717744c698551a,start X-Google-Thread: 11035d,6f717744c698551a,start X-Google-Thread: f8f36,6f717744c698551a,start X-Google-Attributes: gidfc89c,gid11035d,gidf8f36,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m7g2000cwm.googlegroups.com!not-for-mail From: "Tom" <txchen@gmail.com> Newsgroups: comp.unix.programmer,comp.unix.solaris,cn.bbs.comp.unix.development.kernel Subject: Help: How does yacc define it's parsing tables (yyact, yypact ...)? Date: 19 Oct 2006 20:00:05 -0700 Organization: http://groups.google.com Lines: 20 Message-ID: <1161313204.988106.134730@m7g2000cwm.googlegroups.com> NNTP-Posting-Host: 72.234.149.144 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1161313210 29043 127.0.0.1 (20 Oct 2006 03:00:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 20 Oct 2006 03:00:10 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m7g2000cwm.googlegroups.com; posting-host=72.234.149.144; posting-account=yw_eqQ0AAABNWtcmA17T2PgSzH1qjwc4