Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

BNF notation

Name: Anonymous 2011-05-04 10:06

Can somebody tell me how do to a simple BNF notation of a 3d object?

like x y z coordinates and some functions like + and *?

I am absolutly lost here. And i dont even want to begin with first and follow

Name: Anonymous 2011-05-04 10:12


>>1        ::= faggot | imageboard retard
faggot     ::= >>1
imageboard ::= >>1 faggot
retard     ::= faggot

Name: Anonymous 2011-05-04 10:19

>>2
Am i right to asume that you are a retard?

Name: Anonymous 2011-05-04 10:35

>>3
retard     ::= faggot
faggot     ::= >>1

I'm not >>1.

Name: Anonymous 2011-05-04 10:40

>>4
Thank you for your help then

Name: Anonymous 2011-05-04 20:06

Here's a the syntax of BNF.

 <syntax> ::= <rule> | <rule> <syntax>
 <rule>   ::= <opt-whitespace> "<" <rule-name> ">" <opt-whitespace> "::="
                 <opt-whitespace> <expression> <line-end>
 <opt-whitespace> ::= " " <opt-whitespace> | ""
 <expression>     ::= <list> | <list> "|" <expression>
 <line-end>       ::= <opt-whitespace> <EOL> | <line-end> <line-end>
 <list>    ::= <term> | <term> <opt-whitespace> <list>
 <term>    ::= <literal> | "<" <rule-name> ">"
 <literal> ::= '"' <text> '"' | "'" <text> "'"

(Disclaimer: Attempting to resolve the dependency graph to understand this example may result in stack overflow.)

Name: Anonymous 2011-05-04 21:07

EBNF > BNF

Name: Anonymous 2011-05-04 21:13

BNF
Big Nigger Faggot?

Name: Anonymous 2011-05-04 21:55

>>8
Backus Nigger Faggot

Name: Anonymous 2011-05-04 22:21

Burnt Nigger Flesh

Name: Anonymous 2011-05-04 22:25

Buy New Fleshlight.

Name: Anonymous 2011-05-04 23:12

>>1
BNF describes only syntax, not semantics.
For instance you use it do describe what a valid function definition looks like or the definition of a class.

For defining functions and types you need an actual programming language like haskal.

Don't change these.
Name: Email:
Entire Thread Thread List