go.go_.scanner

Go to Haxe source-to-source compiler

..
Error

In an ErrorList, an error is represented by an *Error. The position Pos, if valid, points to the beginning of the offending token, and the error condition is described by Msg.

ErrorHandler

An ErrorHandler may be provided to Scanner.Init. If a syntax error is encountered and a handler was installed, the handler is called with a position and an error message. The position points to the beginning of the offending token.

ErrorHandlerPointer

ErrorHandlerPointerPointer

ErrorHandlerPointer_asInterface

ErrorHandler_asInterface

ErrorList

ErrorList is a list of *Errors. The zero value for an ErrorList is an empty ErrorList ready to use.

ErrorListPointer

ErrorListPointerPointer

ErrorListPointer_asInterface

ErrorList_asInterface

ErrorPointer

ErrorPointerPointer

ErrorPointer_asInterface

Error_asInterface

Mode

A mode value is a set of flags (or 0). They control scanner behavior.

ModePointer

ModePointerPointer

ModePointer_asInterface

Mode_asInterface

Scanner

Package scanner implements a scanner for Go source text. It takes a []byte as source which can then be tokenized through repeated calls to the Scan method.

ScannerPointer

ScannerPointerPointer

ScannerPointer_asInterface

Scanner_

A Scanner holds the scanner's internal state while processing a given text. It can be allocated as part of another data structure but must be initialized via Init before use.

Scanner_asInterface