event

package
v0.0.0-...-d977049 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package event implements the events that cause transitions between FSA states.

* Unicode classes: number, letter, upcase, lowcase, space * Ranges: any, anyof, not * CharLit

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOrdered

func GetOrdered(items ...*item.Item) (events []ast.LexBase)

GetOrdered returns the set of unique transition events for items, ordered by the event precidence.

Types

type TriState

type TriState int

TriState has range: {True, False, Undefined}

const (
	// Undefined is a TriState value
	Undefined TriState = iota
	// False is a TriState value
	False
	// True is a TriState value
	True
)

func Subset

func Subset(a, b ast.LexBase) TriState

Subset returns True if a is a subset of b, False if a is not a subset of b, and Undefined if the subset relationship is not defined between a and b

Jump to

Keyboard shortcuts

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