Documentation
¶
Overview ¶
Package lex implements lexing for the CTM data format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorInfo ¶
ErrorInfo desribes an lexical error along with the position in a source where the error occurred.
type Lexeme ¶
type Lexeme struct {
Type Type
Value string
Start, End lex.Position
// ErrMessage is set only when Type==Error.
ErrMessage string
// ErrInner is set only when Type==Error.
ErrInner error
}
Lexeme describes a lexical CTM atom, including its position in a source text.
type Lexer ¶
type Lexer struct {
*lex.RuneScanner
// contains filtered or unexported fields
}
Lexer supports lexing a CTM source into lexical atoms.
Click to show internal directories.
Click to hide internal directories.