BNF Grammar Derivation
-
19-09-2019 - |
Question
I want to apply rules of BNF Grammar to produce derivation for : a_Num
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