optionalstring

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OPENSQR           = "OPENSQR"
	CLOSESQR          = "CLOSESQR"
	SQUOTE            = "SQUOTE"
	ESCAPEDCHAR       = "ESCAPEDCHAR"
	NORMALCHARS       = "NORMALCHARS"
	CHAR              = "CHAR"
	CHARS             = "CHARS"
	CHARWITHINESCAPE  = "CHARWITHINESCAPE"
	CHARSWITHINESCAPE = "CHARSWITHINESCAPE"
	ESCAPED           = "ESCAPED"
	ITEM              = "ITEM"
	ITEMS             = "ITEMS"
	OPTIONAL          = "OPTIONAL"
	OPTIONALSTRING    = "OPTIONALSTRING"
)
View Source
const (
	Normal valueType = iota
	SingleQuoteEscaped
	SlashEscaped
)

Variables

This section is empty.

Functions

func EnumerateOptionalString

func EnumerateOptionalString(optionalString string) (enumerated []string, err error)

func MakeOptionalStringParser

func MakeOptionalStringParser(ast *parsec.AST) parsec.Parser

Types

type RawString

type RawString slice.Deque[TextNode]

func EnumerateOptionalStringRaw

func EnumerateOptionalStringRaw(optionalString string) (enumerated []RawString, err error)

func NewRawString

func NewRawString() RawString

func (RawString) Append

func (rs RawString) Append(str ...RawString) RawString

func (RawString) Clone

func (rs RawString) Clone() RawString

func (RawString) String

func (rs RawString) String() string

func (RawString) Unescaped

func (rs RawString) Unescaped() string

type SyntaxError

type SyntaxError struct {
	Input    string
	ParsedAs string
}

func (SyntaxError) Error

func (e SyntaxError) Error() string

type TextNode

type TextNode struct {
	// contains filtered or unexported fields
}

func (TextNode) Len

func (v TextNode) Len() int

func (TextNode) Typ

func (v TextNode) Typ() valueType

func (TextNode) Unescaped

func (v TextNode) Unescaped() string

func (TextNode) Value

func (v TextNode) Value() string

Jump to

Keyboard shortcuts

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