asdlGen Reference Manual : Input Syntax : View Syntax
Previous: Attributes
Next: Basic Syntax

3.4. View Syntax


lit-txt = see discussion below
view = "view" id "{" {view-entry} "}"
view-entity = id "." typ-id
| id "." con-id
| "module" id
view-prop = "<=" id
view-entry = view-entityview-proplit-txt
| "{" {view-entity} "}"view-proplit-txt
| view-prop"{" {view-entitylit-txt} "}"
| view-entity "<=""{" {idlit-txt} "}"

Views are an extensible system of annotating modules, types, and constructors to aid in the conversion of ASDL declarations into a particular output language. This discussion will only cover the basic view syntax. Section sect.views discusses the meaning of the annotations in more detail.

3.4.1. Basic Syntax

3.4.2. Sugared Syntax


asdlGen Reference Manual : Input Syntax : View Syntax
Previous: Attributes
Next: Basic Syntax