lexer

package
v4.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceGlobals

func ReplaceGlobals(lexer *Lexer) func()

ReplaceGlobals affect a new repository to the global lexer singleton

Types

type Lexer

type Lexer struct {
	Ast    *parsec.AST
	Parser parsec.Parser
}

Lexer is a specific lexing component to parse fact condition DSL

func L

func L() *Lexer

L is used to access the global lexer singleton

func New

func New(entities []string) (*Lexer, error)

New creates a new lexer instance

Jump to

Keyboard shortcuts

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