BNF is a way of describing the grammar for the language.
It it not a means of describing random program snippets such as this.
You might begin with
<assignment> ::= <variable> "=" <expression>
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
Run?
What are you trying to 'run' ?
Post what you tried.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
>would you like to look at the code?
This just slows down the process. Post your code, tell us what errors you're getting, and someone will get to it. "Will you look at the code?", "Can anyone help?", etc.. will invariably be answered with "Yes! Ask already!", so why not skip that part and just ask your question?
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
I'm confused as to where 'bnf' fits into the discussion.
If you have some C++ code, then just post it already and stop with the 1 or 2 line posts which don't convey any information that anyone else could use to help you.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953