general

package
v1.0.1-imp-11 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuilder

func GetBuilder() *strings.Builder

GetBuilder return the string builder inside this pool.

func GetClosingBracket

func GetClosingBracket(ch rune) (chRes rune)

GetClosingBracket return the pair of brackets from the mapping.

func IgnoreNextToken

func IgnoreNextToken(l *lexer.L)

IgnoreNextToken ignore the next token inside lexer.

func PutBuilder

func PutBuilder(builder *strings.Builder)

PutBuilder return the strings builder inside the pool.

Types

type LexerFunc

type LexerFunc func(l *lexer.L)

LexerFunc defines the action for the passed lexer.

type RuneChecker

type RuneChecker func(ch rune) bool

RuneChecker specifies the signature requirements for the function to complement rune checker

var (
	IsBrackets   RuneChecker
	IsQuotes     RuneChecker
	IsAlphabetic RuneChecker
)

List of all general rune checker functions.

Jump to

Keyboard shortcuts

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