See Picture Write a BNF description for a statementsequence
See Picture.
Write a BNF description for a statement-sequence as a sequence of statements in which each statement is terminated by a semicolon. (Assume that statements are defined elsewhere.) Then, translate your BNF into EBNF and/or syntax diagrams.Solution
BNF syntax : name :: = expansion. where name defines identifier
And expansion defines the expansion | name | terminal
EBNF defines extended to BNF form notation syntax will be like
* : This extension defines some expression can be repeated no of times
+: This extension defines some expression can appear one or more than times
syntax : exp : :< term> (\'+\' | \'-\')< exp>

