Documentation
¶
Index ¶
Constants ¶
View Source
const ( EOF = scanner.EOF Ident = scanner.Ident Int = scanner.Int Float = scanner.Float Char = scanner.Char String = scanner.String RawString = scanner.RawString Comment = scanner.Comment )
View Source
const (
TOKEN_VARIABLE = -(iota + 100)
)
Variables ¶
This section is empty.
Functions ¶
func IsPlusMinus ¶
func IsVariableStart ¶
IsVariableStart true if the rune is valid for the first char of a variable name
func IsVariableSuccessor ¶
IsVariableSuccessor true if the rune is valid for the successive chars in a variable name
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
A simple lexer used to tokenise raw text into something the Parser can handle
Click to show internal directories.
Click to hide internal directories.