package
0.0.0-20240903203445-8da6124ea7e7
Repository: https://github.com/navionguy/basicwasm.git
Documentation: pkg.go.dev

# Functions

No description provided by the author

# Constants

# Structs

AutoCommand turns on automatic line numbering during entry it comes in two forms AUTO [line number][,[increment]] AUTO .[,[increment]] where the '.' indicates start at current line.
BeepStatement triggers a beep, no parameters.
the expression that forms the user defined function.
BlockStatement holds a block statement.
holds a call to builtin function.
CallExpression is used when calling built in functions.
ChainStatement loads a program file.
No description provided by the author
Clear clears all variables and closes open file.
CloseStatement closes an open file or COM port.
ClsStatement command to clear screen.
Code allows iterating over the code lines subject to control transfer.
ColorStatement changes foreground/background colors.
No description provided by the author
ConstData provides access to DATA elements.
Cont command means restarting a stopped program.
CSRLIN variable serves up the curre.
DataStatement how basic did constants.
DblIntegerLiteral holds a 32bit integer.
DimStatement holds the dimension data for an Identifier.
EndStatement signals it is time to quit.
the end of the program file.
signal that an error has occurred.
ExpressionStatement holds an expression.
FileNumber holds the I/O identity of an open file.
FilesCommand gets list of files from basic server.
FixedLiteral is a Fixed Point number.
FloatDoubleLiteral 64 bit floating point number.
FloatSingleLiteral holds a single precision floating point eg.
No description provided by the author
FunctionLiteral starts the definition of a user function.
GosubStatement call subroutine.
GotoStatement triggers a jump.
GroupedExpression is enclosed in parentheses.
HexConstant holds values in the from &H76 &H32F.
Identifier holds the token for the identifier in the statement.
IfStatement holds an If statement.
IndexExpression contains the index into an array.
InfixExpression things like 5 + 6.
IntegerLiteral holds an IntegerLiteral eg.
holds the key settings in the environment settings.
No description provided by the author
LetStatement holds the assignment expression.
LineNumStmt holds the line number.
ListExpression when LIST is a parameter to a Statement.
ListStatement command to clear screen.
Load command loads a source file and optionally starts it.
locate and optional configure the look of the cursor.
NewCommand clears the program and variables.
NextStatement.
OctalConstant has two forms &37 or &O37.
OffExpression used as a param to KEY statement.
OnErrorGoto statement transfers execution when an error occurs.
OnExpression used as a param to KEY statement.
OnGoStatement handles both GOSUB and GOSUB.
No description provided by the author
user wants to change the color palette.
PrefixExpression the big one here is - as in -5.
PrintStatement holds everything to control the output.
Program holds the root of the AST (Abstract Syntax Tree).
ReadStatement fills variables from constaint DATA elements.
RemStatement holds a comment about the program.
RestoreStatement resets the DATA constant scanner to either the beginning or to a specified line number.
Resume execution after recovering from an error.
RetPoint holds the line and statement we want to return to.
ReturnStatement holds a return.
RunCommand clears all variables and starts execution RUN linenum starts execution at linenum.
No description provided by the author
Stop statement stops execution.
StringLiteral holds an StringLiteral eg.
No description provided by the author
TrashStatement holds stuff the parser couldn't make sense out of.
TroffCommand turns off tracing.
TronCommand turns on tracing.
Using Expression, part of the PRINT statement.
No description provided by the author
View Statement changes the viewport size for graphics.

# Interfaces

Expression defines interface for all expression nodes.
Node defines interface for all node types.
Statement defines the interface for all statement nodes.
TrashCan defines interface for all nodes that store parser trash This allows the evaluation loop to catch when ast.Node has trash and simply return a syntax error.

# Type aliases

ColorPalette maps[GWBasicColor]XTermColor.