Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer struct {
LastToken token.Token // last token for lookback
// contains filtered or unexported fields
}
func (*Lexer) Errors ¶
Errors returns lexical errors accumulated while scanning. Meaningful only after the input has been fully consumed (e.g. the parser drove NextToken to EOF). Used by txcl.Validate; ignored by the runtime.
func (*Lexer) Span ¶ added in v0.2.31
Span returns the byte offsets [start, end) of the token NextToken last returned, within the input: the token's own text, with the whitespace and comments before it excluded. A STRING's span covers its quotes (and a `b64` prefix); an AMP_IDENT's covers the `&`. Tools that rewrite txcl source by token (the CLI's &include expansion) splice on these.
Click to show internal directories.
Click to hide internal directories.