Question

I want to apply rules of BNF Grammar to produce derivation for : a_Num

Was it helpful?

Solution

Your question is a bit vague. But below is a BNF (ish) grammar for an integer number.

nz_digit   = '1' | ... | '9';
digit      = '0' | nz_digit;
digitseq   = digit | digitseq, digit;

num        =  '0' | nz_digit, digitseq;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top