scanner

package
v0.0.0-...-6eb16da Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EOF   = Token(scanner.EOF)
	Ident = Token(scanner.Ident)
	Int   = Token(scanner.Int)
	Char  = Token(scanner.Char)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Position

type Position = scanner.Position

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func New

func New(r io.Reader, filename string) *Scanner

func (*Scanner) Pos

func (s *Scanner) Pos() Position

func (*Scanner) Scan

func (s *Scanner) Scan() Token

func (*Scanner) Text

func (s *Scanner) Text() string

type Token

type Token rune

func (Token) String

func (t Token) String() string

TODO: Show the integer/character data.

Jump to

Keyboard shortcuts

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