Log in

View Full Version : Bnf



king vash
08-13-2007, 02:54 AM
My parents help me write code (both of them are serial programmers who write linux in spare time) and they constantly complain about the fact that i don't have a BNF for scar, would it be the pascal BNF or something different? is their one available?

RAM
08-14-2007, 01:14 AM
My parents help me write code (both of them are serial programmers who write linux in spare time) and they constantly complain about the fact that i don't have a BNF for scar, would it be the pascal BNF or something different? is their one available?

Nice, better than having Serial Killers for parents :D...I'm not to familiar with that acronym... is this what your BNF (http://en.wikipedia.org/wiki/Backus-Naur_form) is referring to ?

~RAM

king vash
08-14-2007, 07:17 AM
http://www.cs.stevens.edu/~badri/cs616/pas_bnf.html
is the BNF for scar, or close enough for goverment work! It's the grammer of a programming language it helps you understand errors and tells you what the compiler is expecting


The Backus–Naur form (also known as BNF, the Backus–Naur formalism, Backus normal form, or Panini–Backus form) is a metasyntax used to express context-free grammars: that is, a formal way to describe formal languages.

BNF is widely used as a notation for the grammars of computer programming languages, instruction sets and communication protocols, as well as a notation for representing parts of natural language grammars (for example, meter in Sanskrit poetry.) Most textbooks for programming language theory and/or semantics document the programming language in BNF. (wikipedia's explination)

Martingon
08-14-2007, 04:39 PM
What he's talking about is... A standardized cheat sheet. Using specific style (BNF) to write out the code.

How I would hate learning a new syntax just so I could learn syntax's better...

Although I only have 5 syntax's memorized. Around 22ish is when you need stuff like BNF.

*edit* that link you gave seems like a BNF for pascal, not scar...

king vash
08-15-2007, 12:57 AM
so if it's not the pascal BNF could someone give me a link to the real one please,
and tahnks for all the comments

jhildy
08-15-2007, 02:55 PM
pascal is closely related to scar so it shouldn't really matter.

rotflmfwao
08-15-2007, 08:33 PM
SCAR is a pascal based language, so yeah, they're REEEEEEEALY closely related.
I bet you could write a program in SCAR (w/out SRL functions) and a Pascal compiler would compile it XD

Special Ed
08-15-2007, 08:56 PM
I wouldn't doubt it since SCAR is a pascal based program, but who knows, they may have changed some things around but you'd have to ask Freddy about that or at least someone who's worked on SCAR Before.

king vash
08-15-2007, 10:13 PM
how can i contact freddy? or other programmers (of scar)

RAM
08-15-2007, 10:21 PM
how can i contact freddy? or other programmers (of scar)

The search button is your best friend ;).... try... www.freddy1990.com

~RAM

king vash
08-16-2007, 06:59 AM
thanks