ast_types

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 0 Imported by: 0

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL