[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Grammar definition problem.
From: |
Vincent Zweije |
Subject: |
RE: Grammar definition problem. |
Date: |
Mon, 21 Mar 2005 11:23:22 +0100 |
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.