#include "y1.h" main(argc,argv) int argc; char *argv[]; { puts("Setup..."); setup(argc,argv); /* initialize and read productions */ puts("cpres ..."); tbitset = NWORDS(ntokens); cpres(); /* make table of which productions yield a given nonterminal */ puts("cempty ..."); cempty(); /* make a table of which nonterminals can match the empty string */ puts("cpfir ..."); cpfir(); /* make a table of firsts of nonterminals */ puts("stagen ..."); stagen(); /* generate the states */ puts("output ..."); output(); /* write the states and the tables */ puts("go2out ..."); go2out(); puts("hideprod ..."); hideprod(); puts("summary ..."); summary(); puts("callopt ..."); callopt(); puts("others ..."); others(); puts("DONE !!!"); exit(0); }