state

package
v0.0.0-...-1d296a1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package state defines the state functions for the state machine

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Machine

func Machine(lex *internal.Lexer)

Machine starts the state machine for the lexer

Types

type State

type State func(*internal.Lexer) State

State is a representation of the Lexer state, the Lexer returns the next State function

func LexText

func LexText(lex *internal.Lexer) State

LexText is the public entry point for all lexer states

Jump to

Keyboard shortcuts

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