Documentation ¶
Index ¶
Constants ¶
View Source
const ( Primitive = 1 << iota Collection Symbol Numeric Expression )
Variables ¶
View Source
var (
TypeNilId, TypeNil = NewType("nil")
TypeUnknownId, TypeUnknown = NewType("nil")
TypeStringId, TypeString = NewTypeWithProperties("string", Primitive)
TypeKeywordId, TypeKeyword = NewTypeWithProperties("keyword", Symbol)
TypeIntId, TypeInt = NewTypeWithProperties("integer", Primitive)
TypeSymbolId, TypeSymbol = NewTypeWithProperties("symbol", Symbol)
TypeDictionaryId, TypeDictionary = NewTypeWithProperties("dict", Collection)
TypeVectorId, TypeVector = NewTypeWithProperties("vector", Collection)
TypeCharSequenceId, TypeCharSequence = NewTypeWithProperties("charseq", Primitive)
TypeSexpressionId, TypeSexpression = NewTypeWithProperties("sexp", Expression)
)
Functions ¶
This section is empty.
Types ¶
type Type ¶
type Type struct { // Name of the type Name string // Unique ID Id int // PropertyMask to store boolean properties PropertyMask int32 }
Function is a generic type interface
func NewTypeWithProperties ¶
func (Type) HasProperty ¶
Click to show internal directories.
Click to hide internal directories.