syntaxerror

package
v0.0.0-...-68482a3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Success = iota
	ExpectedAKeywordLineNumberExpressionVariableAssignmentOrProcedureCall
	CouldNotInterpretAsANumber
	DidNotExpectInExpression
	HasNotBeenDefined
	IsAKeywordAndCannotBeUsedAsAVariableName
	InvalidExpression
	CannotPerformBitwiseOperationsOnFloatValues
	CannotPerformBitwiseOperationsOnStringValues
	TooManyParametersFor
	NotEnoughParametersFor
	LineNumberExpected
	LineNumberDoesNotExist
	UnknownCommandProcedure
	TryingToDivideByZero
	EndOfInstructionExpected
	NumericExpressionNeeded
	InvalidExpressionFound
	SpecifiedLineNotFound
	LineNumberLabelNeeded
	StringExpressionNeeded
	ExactFilenameIsNeeded
	FilenameIsADirectory
	FileOperationFailure
	UnableToOpenNamedFile
	CommaSeparatorIsNeeded
	InterruptedByBreakKey
	VariableNameIsNeeded
	UnknownSetAskAttribute
	WrongSetAskAttribute
	NumericVariableNeeded
	NextWithoutMatchingFor
	UntilWithoutAnyRepeat
	ThenExpected
	NumericOrStringExpressionNeeded
	SemicolonSeparatorIsNeeded
	OpeningBracketIsNeeded
	ClosingBracketIsNeeded
	WrongNumberOfSubscripts
	ArrayAlreadyDimensioned
	ArraySubscriptIsWrong
	ToIsNeededBeforeValue
	PositiveValueRequired
	NumberNotAllowedInRange
	StepValueNotLargeEnough
	UnsupportedImageFileFormat
	CouldNotDecodeImageFile
	FunctionArrayNotFound
	UnableToReadExcessData
	NoMoreDataToBeRead
	StringVariableExpected
	CannotExecuteDefinition
	NameOfDefinitionRequired
	EndOfDefinitionExpected
	FunctionNestingTooDeep
	ReturnWithoutAnyGosub
	NeedResultToExitFunction
	FunctionExitWithoutCall
	ProcedureExitWithoutCall
	DirectoryCannotBeFound
	UnableToCreateDirectory
	UnableToRemoveDirectory
	UnableToEraseTheFile
	UnableToRenameTheFile
	VariableUsedAsLocal
	WrongChannelNumberUsed
	NamedChannelAlreadyInUse
	ChannelNotOpenForInput
	ChannelNotOpenForOutput
	ReadingPastEndOfFile
	TooManyFilesOpen
)

Error codes defined here

Variables

This section is empty.

Functions

func ErrorMessage

func ErrorMessage(errorCode int) string

ErrorMessage returns the template error message for a given error code

Types

This section is empty.

Jump to

Keyboard shortcuts

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