Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!aplcen!haven!adm!xadmx!thoth!jbd0@gte.com From: thoth!jbd0@gte.com (Jeffrey B. DeLeo) Newsgroups: comp.unix.questions Subject: lex/yacc question Message-ID: <21582@adm.BRL.MIL> Date: 30 Nov 89 06:33:34 GMT Sender: news@adm.BRL.MIL Lines: 15 Once you have identified your lexical primitives you should be all set. These will be the nonterminals for your grammar; the grammar being defined in the yacc source file. Simply put all of the nonterminals in a .y (yacc source file) using the %token construct, put in some minimal information so yacc will run, and run yacc with the "-d" option - the y.tab.h file will be produced. The y.tab.h file will only change if you define new nonterminals; now you can use these values elsewhere while you write your grammar (yacc rules). ...!bunny!thoth!jbd0