Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenScanner ¶
TokenScanner represents a function that scans a Token from a Runer. The scanning employs longest match against the productions relevant to the specific Kind of Token.
func Next ¶
func Next(r *runer.Runer) (TokenScanner, perror.Perror)
Next returns a suitable TokenScanner function that will scan the next Token.
func ShebangScanner ¶
func ShebangScanner() TokenScanner
ShebangScanner returns the scanner that will scan all remaning runes in the current line.
Click to show internal directories.
Click to hide internal directories.