asdlGen Reference Manual : Input Syntax
Previous: Language Specific Options
Next: Lexical Tokens

3. Input Syntax

This section describes the syntax of the input language to asdlGen. The syntax is described using EBNF notation. Literal terminals are enclosed by double quotes. Optional terms are enclosed in "[]"'s. Terms which are repeated zero or more times are enclosed in "{}"'s. The description is broken up in smaller subsection. Each subsection describes some fragment of the syntax and its meaning.

3.1. Lexical Tokens

3.2. Module Syntax

3.3. Type Definitions

3.3.1. Primitive Types
3.3.2. Product Types
3.3.3. Sum Types
3.3.4. Field Labels
3.3.5. Type Qualifiers
3.3.6. Attributes

3.4. View Syntax

3.4.1. Basic Syntax
3.4.2. Sugared Syntax

asdlGen Reference Manual : Input Syntax
Previous: Language Specific Options
Next: Lexical Tokens