Documentation
¶
Index ¶
- type ArithmeticExpression
- type ArrayPrimitiveExpression
- type AssignStatement
- type BlockBody
- type BlockCallExpression
- type BlockDeclarationStatement
- type Comment
- type ConditionExpression
- type Elif
- type ErrorContent
- type Expression
- type ForStatement
- type Identifier
- type IfStatement
- type IntPrimitiveExpression
- type Main
- type MutaterKeyword
- type NamespaceDeclarationStatement
- type NamespaceIndexerExpression
- type NativeFunction
- type NativeFunctionReturn
- type ParserResult
- type Population
- type Position
- type PrimitiveExpression
- type Program
- type QuantityModifierStatement
- type ReferenceExpression
- type ReturnStatement
- type ScopeMutaterExpression
- type StringPrimitiveExpression
- type SwitchCase
- type SwitchStatement
- type ThrowStatement
- type UseStatement
- type VariableDeclarationStatement
- type WhileStatement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArithmeticExpression ¶
type ArithmeticExpression struct {
Operation string `json:"operation"`
Type string `json:"type"`
Left Expression `json:"left"`
Right Expression `json:"right"`
Position Position `json:"position"`
}
type AssignStatement ¶
type AssignStatement struct {
Operation string `json:"operation"`
Left Identifier `json:"left"`
Right map[string]interface{} `json:"right"`
Position Position `json:"position"`
}
type BlockBody ¶
type BlockBody struct {
Init []interface{} `json:"init"`
Program []interface{} `json:"program"`
}
type BlockCallExpression ¶
type BlockCallExpression struct {
Operation string `json:"operation"`
Name Identifier `json:"name"`
Verbs []map[string]interface{} `json:"verbs"`
Arguments []map[string]interface{} `json:"arguments"`
Position Position `json:"position"`
}
type BlockDeclarationStatement ¶
type BlockDeclarationStatement struct {
Operation string `json:"operation"`
Owner string `json:"owner"`
Name Identifier `json:"name"`
Verbs []Identifier `json:"verbs"`
Arguments []Identifier `json:"arguments"`
Body interface{} `json:"body"`
Implementing bool `json:"implementing"`
Implements Identifier `json:"implements"`
Populate []Population `json:"populate"`
Position Position `json:"position"`
Instance interface{} `json:"instance"`
Native bool `json:"native"`
}
type ConditionExpression ¶
type ConditionExpression struct {
Operation string `json:"operation"`
Type string `json:"type"`
Left Expression `json:"left"`
Right Expression `json:"right"`
Position Position `json:"position"`
}
type Elif ¶
type Elif struct {
Condition map[string]interface{} `json:"condition"`
Body []interface{} `json:"body"`
}
type ErrorContent ¶
type Expression ¶
type ForStatement ¶
type Identifier ¶
type IfStatement ¶
type IntPrimitiveExpression ¶
type MutaterKeyword ¶
type NamespaceDeclarationStatement ¶
type NamespaceDeclarationStatement struct {
Operation string `json:"operation"`
Name Identifier `json:"name"`
Body []map[string]interface{} `json:"body"`
Position Position `json:"position"`
}
type NamespaceIndexerExpression ¶
type NamespaceIndexerExpression struct {
Operation string `json:"operation"`
Namespace Identifier `json:"namespace"`
Index Identifier `json:"index"`
Position Position `json:"position"`
}
type NativeFunction ¶
type NativeFunction func(arguments []IntPrimitiveExpression, verbs []IntPrimitiveExpression) NativeFunctionReturn
type NativeFunctionReturn ¶
type NativeFunctionReturn struct {
Value IntPrimitiveExpression `json:"value"`
Error bool `json:"error"`
Warn bool `json:"warn"`
Message string `json:"string"`
}
type ParserResult ¶
type ParserResult struct {
Error bool `json:"error"`
Content interface{} `json:"content"`
}
type Population ¶
type PrimitiveExpression ¶
type PrimitiveExpression struct {
}
type Program ¶
type Program struct {
Imports []UseStatement `json:"imports"`
Program []interface{} `json:"program"`
}
type ReferenceExpression ¶
type ReturnStatement ¶
type ReturnStatement struct {
Operation string `json:"operation"`
Expression Expression `json:"expression"`
Position Position `json:"position"`
}
type ScopeMutaterExpression ¶
type ScopeMutaterExpression struct {
Operation string `json:"operation"`
Mutater MutaterKeyword `json:"mutater"`
Arguments []map[string]interface{} `json:"arguments"`
Position Position `json:"position"`
}
type SwitchCase ¶
type SwitchCase struct {
Case map[string]interface{} `json:"case"`
Body []interface{} `json:"body"`
}
type SwitchStatement ¶
type SwitchStatement struct {
Operation string `json:"operation"`
Condition map[string]interface{} `json:"condition"`
Cases []SwitchCase `json:"cases"`
Default SwitchCase `json:"default"`
Position Position `json:"position"`
}
type ThrowStatement ¶
type ThrowStatement struct {
Operation string `json:"operation"`
Expression Expression `json:"expression"`
Position Position `json:"position"`
}
type UseStatement ¶
type UseStatement struct {
Source StringPrimitiveExpression `json:"source"`
Position Position `json:"position"`
}
type VariableDeclarationStatement ¶
type VariableDeclarationStatement struct {
Operation string `json:"operation"`
Kind string `json:"kind"`
Left Identifier `json:"left"`
Right map[string]interface{} `json:"right"`
Position Position `json:"position"`
}
type WhileStatement ¶
Click to show internal directories.
Click to hide internal directories.