Atul wrote: > X -> letter { letter | digit }. > here letter and digit are terminals and X is the non terminal symbol.
> how do I put the OR part of the rule inconsideration of the > fact that that scentence has to start with the "letter" and > later have any number of of digit? Use a nonterminal symbol with a recursive rule to define your { letter | digit } part. Ciao. Vincent. _______________________________________________ Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison