Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
    const ENUM = 57350
    
      View Source
      
  
    const ERROR = 57346
    
      View Source
      
  
    const FORMAT = 57351
    
      View Source
      
  
    const IDENT = 57347
    
      View Source
      
  
    const PRIM = 57352
    
      View Source
      
  
    const RESERVED = 57353
    
      View Source
      
  
    const STR = 57348
    
      View Source
      
  
    const STRUCT = 57354
    
      View Source
      
  
    const SUM = 57355
    
      View Source
      
  
const TAG = 57349
    Variables ¶
This section is empty.
Functions ¶
Types ¶
type Def ¶
type Def struct {
	Kind  DefKind
	Name  TypeNameOccur
	Items []DefItem
}
    Def represents either an enumeration, a primitive type, a struct, or a sum.
type DefItem ¶
type DefItem struct {
	Name    ItemNameOccur
	IsSlice bool
	Type    TypeNameOccur
	Tag     TagOccur
}
    DefItem represents either an enumeration constant, a struct field, a sum alternative, or a reserved tag. Enumeration constants have a name. Struct fields have a name and a type. Sum alternatives have a type. Reserved tags have neither a name nor a type.
func (DefItem) IsReserved ¶
IsReserved returns true if the item is a tag reservation.
type ItemName ¶
type ItemName string
ItemName represents the name of an enumeration constant or a struct field.
type ItemNameOccur ¶
ItemNameOccur represents an occurrence of an ItemName in the input.
type Pos ¶
type Pos struct {
	// contains filtered or unexported fields
}
    Pos represents a position in the input.
type TypeNameOccur ¶
TypeNameOccur represents an occurrence of a TypeName in the input.
 Click to show internal directories. 
   Click to hide internal directories.