For Programmers: Free Programming Magazines  


Home > Archive > Compilers > October 2006 > Help: How does yacc define it's parsing tables (yyact, yypact ...)?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Help: How does yacc define it's parsing tables (yyact, yypact ...)?
Tom

2006-10-20, 4:11 am

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 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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com