lex_analysis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LexType

type LexType int
const (
	LEX_TYPE_STRING LexType = iota
)

type LexerInput

type LexerInput struct {
	snreader.InputItf
	C rune
}

type LexicalCfg

type LexicalCfg struct {
	StartCharset    string   `json:"start_charset"` //must in this charset.
	StartWith       []string `json:"start_with"`    //if len != 0, only when find those string can do.
	EndWith         []string `json:"end_with"`
	Contains        string   `json:"contains"`
	NotContains     string   `json:"not_contains"`
	FilterBackSlash bool     `json:"filter_back_slash"`
}

type LexicalUnit

type LexicalUnit struct {
	snreader.ProductItf
	Type  LexType
	Value string
}

func (*LexicalUnit) ProductType

func (this *LexicalUnit) ProductType() int

Jump to

Keyboard shortcuts

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