B. Grammar

This appendix contains summaries of the lexical and syntactic grammars found in the main text, and of the grammar extensions for unsafe code. Grammar productions appear here in the same order that they appear in the main text.

B.1 Lexical Grammar

    input:            input-sectionopt

    input-section:            input-section-part            input-section  input-section-part

    input-section-part:            input-elementsopt new-line            pp-directive

    input-elements:            input-element            input-elements  input-element

    input-element:            whitespace            comment            token

B.1.1 Line Terminators

    new-line:            Carriage return character (U+000D)            Line feed character ...

Get The C# Programming Language, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.