|
Syntax Node Types
The syntax tree is composed of a variety of syntax nodes. They are used to build a description of the syntax that is associated with a specific file type. These nodes each have a different function, although they fall broadly into groups. Each of the node types is listed below or to the left, by it's group.
Root Nodes
The root nodes will only ever appear at the top of the syntax tree. There are two types, and the syntax type node is always a child of the syntax root node. There will only ever be one syntax root node. The syntax root node may have an unlimited number of child syntax type nodes.
- - Syntax Root
The syntax root node encapsulates all of the syntax types declared in Osmium. The root node may niether be created nor deleted by a user. It's name may not be modified or specified.
- - Syntax Type
The syntax type node encapsulates a whole syntax defnition. This node may be created and deleted by a user, but it can only ever exist as a child of the previously described root node. It has a user specified name which may be changed, and is used as a reference identifier in the file types dialog. In general terms the syntax type node is a parent to all of the other scheme and group nodes.
|