954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

help with BNF

hi

here is BNF grammer.Can anybody help me to understand it.

-> { "&" }

-> "!" "(" ")"

-> { "|" }
-> ("=" | "<" | ">") -> {"+" | "-" }
-> { "*" | "/" }
-> | "(" ")"

here.inside double quote marks are terminals symbols,but | alone is a meta-symbol in the grammer.

laki234
Newbie Poster
10 posts since Nov 2008
Reputation Points: 7
Solved Threads: 0
 

The last line -> | "(" ")"
says that a is a or a enclosed in brackets.
The line -> { "*" | "/" } means that a is a followed by zero or more things which are preceded by a * or / sign.
With this you should be able to find the rest yourself, otherwise : google BNF grammar.

ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
 

Is this even C#?

gbertoli3
Newbie Poster
16 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

Then why is it in the C# Forum?

gbertoli3
Newbie Poster
16 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 
Is this even C#?


No it isn't...

ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
 

Cave ab homine unius libri.
There is to my knowledge no forum on BNF so he might as well have posted it here.

ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
 

Yeah I guess!

gbertoli3
Newbie Poster
16 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

Nice snippet. Why use unsafe code?

ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
 

Thanks!

I saw some snippets using unsafe code for Image Manipulation. When I compared the two Images the method using the unsafe code looked better.

gbertoli3
Newbie Poster
16 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

Can be. Why not use assembler then, it will look even better.

ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
 

What do you mean by assembler?

gbertoli3
Newbie Poster
16 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

You must be joking if you never heard the word "assembler"

ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
 

I just wanted to know which one(s)! Sorry for the poor wording. I've never made / used an assembler, but I know what one is.

gbertoli3
Newbie Poster
16 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You