lexer

package
v3.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package lexer generates a Go lexer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(g *ast.GoGLL, ls *items.Sets)

Types

type Data

type Data struct {
	Package string
	Accept  []string
	// A slice of transitions for each set
	Transitions [][]*Transition
	Tick        string
}

type Transition

type Transition struct {
	Condition string
	NextState int
}

Jump to

Keyboard shortcuts

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