Documentation
¶
Overview ¶
Package parser provides command and expression parsing.
Index ¶
Constants ¶
View Source
const ( CharacterToken = "character" ParameterToken = "parameter" EOFToken = "eof" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scanner ¶ added in v0.92.0
Scanner holds the shared cursor state and common scanning methods for tokenizers.
func NewScanner ¶ added in v0.92.0
NewScanner initializes a Scanner with the given input text.
func (*Scanner) Advance ¶ added in v0.92.0
func (s *Scanner) Advance()
Advance moves the cursor forward by one rune, tracking line and column numbers.
func (*Scanner) Character ¶ added in v0.92.0
Character consumes a run of non-space characters into a Token.
func (*Scanner) SkipWhitespace ¶ added in v0.92.0
func (s *Scanner) SkipWhitespace()
SkipWhitespace advances past all whitespace characters.
type Token ¶
func ParseString ¶
Click to show internal directories.
Click to hide internal directories.