Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MATH EXPR AdditiveExpr = []string{"+", "-"} MultiplicativeExpr = []string{"*", "/", "%"} MathExpr = []string{"+", "-", "*", "/", "%", "**"} // BOOLEAN EXPR ComparisonExpr = []string{"<", "<=", ">", ">="} EqualityExpr = []string{"==", "!="} BoolExpr = []string{"<", "<=", ">", ">=", "==", "!="} )
Functions ¶
This section is empty.
Types ¶
type NodeType ¶
type NodeType string
const ( // STATEMENTS Program NodeType = "Program" VariableDeclaration NodeType = "VariableDeclaration" FunctionDeclaration NodeType = "FunctionDeclaration" IfStatement NodeType = "IfStatement" SwitchStatement NodeType = "SwitchStatement" ReturnStatement NodeType = "ReturnStatement" WhileStatement NodeType = "WhileStatement" ContinueStatement NodeType = "ContinueStatement" BreakStatement NodeType = "BreakStatement" ForStatement NodeType = "ForStatement" // EXPRESSIONS AssigmentExpr NodeType = "AssigmentExpr" ConditionalExpr NodeType = "ConditionalExp" BinaryExpr NodeType = "BinaryExpr" Identifier NodeType = "Identifier" MemberExpr NodeType = "MemberExpr" CallExpr NodeType = "CallExpr" LogicalExpr NodeType = "LogicalExpr" UnaryExpr NodeType = "UnaryExpr" UpdateExpr NodeType = "UpdateExpr" ArrowFunctionExpr NodeType = "ArrowFunctionExpr" // LITERALS ObjectLiteral NodeType = "ObjectLiteral" Property NodeType = "Property" NumericLiteral NodeType = "NumericLiteral" NullLiteral NodeType = "NullLiteral" BooleanLiteral NodeType = "BooleanLiteral" StringLiteral NodeType = "StringLiteral" NaNLiteral NodeType = "NaNLiteral" ArrayLiteral NodeType = "ArrayLiteral" )
Click to show internal directories.
Click to hide internal directories.