lexer

package
v0.0.0-...-441c9b0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package lexer provides a lexer for PlanOut scripts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lexer

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

func New

func New(input string) *Lexer

New returns a new Lexer for lexing a PlanOut script.

func (*Lexer) NextToken

func (lx *Lexer) NextToken() token.Token

NextToken is used to iterate over tokens in the PlanOut script. Callers should stop iterating when receiving a token.ERROR or token.EOF token type.

Jump to

Keyboard shortcuts

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