package
1.5.0
Repository: https://github.com/paulsonkoly/calc.git
Documentation: pkg.go.dev

# Packages

package bc provides the data that is passed to calls in the bytecoder.

# Functions

ByteCode compiles bc and appends the results in cr.
ByteCodeNoStck compiles bc and appends the results in cr.
Graphviz writes dot format graphviz output of AST to stdout print function for debugging calc.
Loop is the repl-loop.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Aton converts a string to a number type.
BinOp is a binary operator of any kind, anything from "=", etc.
Block is a code block / sequence that was in '{', '}'.
Call is function call.
Closure variable reference.
Exit exits the interpreter with an os exit code.
For is a loop for iterators ans generators.
No description provided by the author
Function is a function definition.
If is a conditional construct without an else case.
IfElse is a conditional construct.
No description provided by the author
No description provided by the author
Invalid is an invalid AST node.
List is a list of arguments or parameters depending on whether it's a function call or definition.
Local variable reference.
Read reads a string from stdin.
Return is a return statement.
No description provided by the author
Toa converts a valye to a string.
UnOp is a unary operator of any kind, ie.
While is a loop construct.
Write writes a value to stdout.
Yield statement.

# Interfaces

No description provided by the author
Constanter converts a constant node to a value.
HasCaller determines whether a node contains a call or not.
No description provided by the author
No description provided by the author
STRewriter is a recursive node transformation that resolves local and closure variable names to indices into the call frame It is not idempotent.
Type is AST node type.

# Type aliases

Bool is boolean literal.
Float is float literal.
Int is integer literal.
Variable name.
String is string literal.
No description provided by the author