package
0.0.0-20241205014208-4aab7561cadd
Repository: https://github.com/luke-goddard/taskninja.git
Documentation: pkg.go.dev

# Functions

NewTranspiler creates a new transpiler with the given store.
Walk traverses an AST in depth-first order: It starts by calling v.Visit(node); node must not be nil.
WalkList traverses a list of nodes in depth-first order: It starts by calling v.Visit(node) for each node in the list.

# Constants

e.g 1 + 2.
e.g 1 / 2.
e.g 1 == 2.
e.g 1 >= 2.
e.g 1 > 2.
e.g 1 <= 2.
e.g 1 < 2.
e.g 1 % 2.
e.g 1 * 2.
e.g 1 != 2.
e.g 1 - 2.
e.g add "buy dog".
e.g depends 1 on 2.
e.g list +HOME.
e.g list +HOME.
e.g 5.
e.g "buy dog".
e.g 1 and 2.
e.g 1 or 2.
NodeTypeBinaryExpression represents a binary expression.
NodeTypeCommand represents a command.
NodeTypeExpressionStatement represents an expression statement.
NodeTypeLiteral represents a literal.
NodeTypeLogicalExpression represents a logical expression.
NodeTypeOption represents an option.
NodeTypePair represents a pair.
NodeTypeParam represents a param.
NodeTypeProgram represents a program.
NodeTypeTag represents a tag.
e.g 1.
e.g "buy dog".
e.g 1".
e.g.
e.g.

# Structs

BinaryExpression represents a binary expression.
Command represents a command in the AST.
ExpressionStatement represents an expression statement.
============================================================================= Key =============================================================================.
Literal represents a literal value in the AST.
LogicalExpression represents a logical expression.
No description provided by the author
Param represents a parameter in the AST.
ParamDependency represents a dependency parameter in the AST.
Tag represents a tag in the AST.
TranspileError represents an error that occurred during transpilation.
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
Node represents a node in the AST.
No description provided by the author
Transpile represents a node that can be transpiled to SQL.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TranspileCallback is a function that is called after the transpiler has executed a SQL statement.