symbols

package
v0.0.0-...-423ac95 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurlyEnvSymbol

type CurlyEnvSymbol struct {
	Statements []Symbol
	Position   scanner.Position
}

func (CurlyEnvSymbol) Name

func (c CurlyEnvSymbol) Name() string

func (CurlyEnvSymbol) Pos

func (CurlyEnvSymbol) Type

func (c CurlyEnvSymbol) Type() SymbolType

type EndEnvSymbol

type EndEnvSymbol struct {
	Environment string
	Position    scanner.Position
}

func (EndEnvSymbol) Name

func (e EndEnvSymbol) Name() string

func (EndEnvSymbol) Pos

func (e EndEnvSymbol) Pos() scanner.Position

func (EndEnvSymbol) Type

func (e EndEnvSymbol) Type() SymbolType

type EnvSymbol

type EnvSymbol struct {
	Environment string
	Statements  []Symbol
	SquareArgs  []Symbol
	Position    scanner.Position
}

func (EnvSymbol) Name

func (e EnvSymbol) Name() string

func (EnvSymbol) Pos

func (e EnvSymbol) Pos() scanner.Position

func (EnvSymbol) Type

func (e EnvSymbol) Type() SymbolType

type IncludeSymbol

type IncludeSymbol struct {
	Path       string
	Statements []Symbol
	Position   scanner.Position
}

func (IncludeSymbol) Name

func (i IncludeSymbol) Name() string

func (IncludeSymbol) Pos

func (i IncludeSymbol) Pos() scanner.Position

func (IncludeSymbol) Type

func (i IncludeSymbol) Type() SymbolType

type InlineMathSymbol

type InlineMathSymbol struct {
	Statements []Symbol
	Position   scanner.Position
}

func (InlineMathSymbol) Name

func (i InlineMathSymbol) Name() string

func (InlineMathSymbol) Pos

func (InlineMathSymbol) Type

func (i InlineMathSymbol) Type() SymbolType

type MacroSymbol

type MacroSymbol struct {
	MacroName  string
	CurlyArgs  [][]Symbol
	SquareArgs []Symbol
	Position   scanner.Position
}

func (MacroSymbol) Name

func (m MacroSymbol) Name() string

func (MacroSymbol) Pos

func (m MacroSymbol) Pos() scanner.Position

func (MacroSymbol) Type

func (m MacroSymbol) Type() SymbolType

type MacroTextSymbol

type MacroTextSymbol struct {
	Tokens   []tokenizer.Token
	Position scanner.Position
}

func (MacroTextSymbol) Name

func (m MacroTextSymbol) Name() string

func (MacroTextSymbol) Pos

func (MacroTextSymbol) Type

func (m MacroTextSymbol) Type() SymbolType

type NewEnvironmentSymbol

type NewEnvironmentSymbol struct {
	Environment string
	Statements  []Symbol
	Position    scanner.Position
	SquareArgs  []Symbol
}

func (NewEnvironmentSymbol) Name

func (m NewEnvironmentSymbol) Name() string

func (NewEnvironmentSymbol) Pos

func (NewEnvironmentSymbol) Type

type NewLineSymbol

type NewLineSymbol struct {
	Position scanner.Position
}

func (NewLineSymbol) Name

func (m NewLineSymbol) Name() string

func (NewLineSymbol) Pos

func (m NewLineSymbol) Pos() scanner.Position

func (NewLineSymbol) Type

func (m NewLineSymbol) Type() SymbolType

type Symbol

type Symbol interface {
	Type() SymbolType
	Name() string
	Pos() scanner.Position
}

type SymbolType

type SymbolType string
const CurlyEnv SymbolType = "CurlyEnv"
const EndEnv SymbolType = "EndEnv"
const Env SymbolType = "EnvSymbol"
const Include SymbolType = "Include"
const InlineMath SymbolType = "InlineMathSymbol"
const Macro SymbolType = "Macro"
const MacroText SymbolType = "MacroTextSymbol"
const NewEnvironment SymbolType = "NewEnvironmentSymbol"
const NewLine SymbolType = "NewLine"
const Text SymbolType = "Text"

type TextSymbol

type TextSymbol struct {
	Content  string
	Position scanner.Position
}

func (TextSymbol) Name

func (t TextSymbol) Name() string

func (TextSymbol) Pos

func (t TextSymbol) Pos() scanner.Position

func (TextSymbol) Type

func (t TextSymbol) Type() SymbolType

Jump to

Keyboard shortcuts

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