syntax diagrams

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I was reading through the C# Specification the other day and was wondering
what format the specification uses to document C# syntax?

It isn't the most intuitive format (I understand it most of the time), but I
was wondering if it is offically documented somewhere. Are we suppose to be
able to just look at it and understand it?

Here is an example taken from section 2.4.4.3 of the C# Specification that
illustrates the formatting I am talking about:


real-literal:
decimal-digits . decimal-digits exponent-partopt real-type-suffixopt
.. decimal-digits exponent-partopt real-type-suffixopt
decimal-digits exponent-part real-type-suffixopt
decimal-digits real-type-suffix
exponent-part:
e signopt decimal-digits
E signopt decimal-digits
sign: one of
+ -
real-type-suffix: one of
F f D d M m
 
Back
Top