how can i change this x=x+y of a c++ to a bnf form?
Lun 0 Newbie Poster
Recommended Answers
Jump to PostBNF 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> …
Jump to Post>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 …
All 8 Replies
Salem 5,265 Posting Sage
Lun 0 Newbie Poster
Salem 5,265 Posting Sage
Lun 0 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
Lun 0 Newbie Poster
Salem 5,265 Posting Sage
Lun 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.