BNF definition of the syntax of (all possible) input statements in C++.

Feb 11, 2017 at 11:49pm
This is what I have so far:

<Input Statement>::= <Dashes> <Expression>;
<Dashes>::= >>
<Expression>::= <Identifier>|<Identifier> <Dashes> <Expression>
<Identifier>::= <Letter> | <Identifier> <character>
<Character>::= <Letter> | <Digit>


I don't know where to go from here.
Feb 12, 2017 at 12:19am
Last edited on Feb 12, 2017 at 12:21am
Topic archived. No new replies allowed.