koreparser

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DOTK = 57347
View Source
const DOTKLIST = 57348
View Source
const KLABEL = 57352
View Source
const KLABELLABEL = 57350
View Source
const KSEQ = 57346
View Source
const KVARIABLE = 57351
View Source
const STRING = 57353
View Source
const TOKENLABEL = 57349

Variables

This section is empty.

Functions

func UnescapeKLabel

func UnescapeKLabel(s []byte) []byte

UnescapeKLabel ... removes starting and ending back-quotes, unescapes back-quotes inside

func UnescapeKString

func UnescapeKString(s []byte) []byte

UnescapeKString ... removes starting and ending double-quotes, unescapes double-quotes inside

Types

type InjectedKLabel

type InjectedKLabel struct {
	Label string
}

InjectedKLabel ... raw InjectedKLabel, as parsed from KAST

func (InjectedKLabel) PrettyTreePrint

func (k InjectedKLabel) PrettyTreePrint(indent int) string

PrettyTreePrint ... A tree representation of a parsed K object

type K

type K interface {
	PrettyTreePrint(indent int) string
}

K ... Defines a parsed K entity, this is either a KItem, or a KSequence of KItems

func Parse

func Parse(kast []byte) K

type KApply

type KApply struct {
	Label string
	List  []K
}

KApply ... raw KApply object, as parsed from KAST

func (KApply) PrettyTreePrint

func (k KApply) PrettyTreePrint(indent int) string

PrettyTreePrint ... A tree representation of a parsed K object

type KSequence

type KSequence []K

KSequence ... a sequence of K items

func (KSequence) PrettyTreePrint

func (k KSequence) PrettyTreePrint(indent int) string

PrettyTreePrint ... A tree representation of a parsed K object

type KToken

type KToken struct {
	Value string
	Sort  string
}

KToken ... raw KToken, as parsed from KAST

func (KToken) PrettyTreePrint

func (k KToken) PrettyTreePrint(indent int) string

PrettyTreePrint ... A tree representation of a parsed K object

type KVariable

type KVariable struct {
	Name string
}

KVariable ... raw KVariable, as parsed from KAST

func (KVariable) PrettyTreePrint

func (k KVariable) PrettyTreePrint(indent int) string

PrettyTreePrint ... A tree representation of a parsed K object

Jump to

Keyboard shortcuts

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