scan

package
v0.0.0-...-8c81fcd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenScanner

type TokenScanner func(*runer.Runer) (token.Token, perror.Perror)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL