common

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error added in v0.7.2

type Error struct {
	Path   string
	Source []string
	Line   int
	Column int
	Msg    string
	Msg2   string
}

func NewError added in v0.7.2

func NewError(filePath string, source []string, line, column int, msg, msg2 string) *Error

type File

type File struct {
	Path        string
	Imports     map[string]string
	FullPath    string
	OutPath     string
	Name        string
	Ast         INode
	Output      string
	LineMapping []int
	Source      []byte
}

func NewFile

func NewFile(filePath, outPath string) *File

func (*File) Error added in v0.7.2

func (this *File) Error(line, column int, msg, msg2 string) *Error

func (*File) Format

func (this *File) Format() error

func (File) Write

func (this File) Write()

type INode added in v0.7.2

type INode interface {
	Eval() string
	Text() string
	Line() int
	Col() int
	SetParent(n INode)
	GetParent() INode
	ChildrenCount() int
	T() interface{}
}

type Node added in v0.7.2

type Node struct {
	Line_    int
	Col_     int
	Text_    string
	Children []INode

	ChildrenCount_ int
	// contains filtered or unexported fields
}

func NewNode added in v0.7.2

func NewNode(ctx antlr.ParserRuleContext, file *File, t interface{}) *Node

func NewNodeNoCtx added in v0.7.2

func NewNodeNoCtx(t interface{}) *Node

func (Node) ChildrenCount added in v0.7.2

func (this Node) ChildrenCount() int

func (Node) Col added in v0.7.2

func (this Node) Col() int

func (Node) Eval added in v0.7.2

func (this Node) Eval() string

func (*Node) GetParent added in v0.7.2

func (this *Node) GetParent() INode

func (Node) Line added in v0.7.2

func (this Node) Line() int

func (*Node) SetParent added in v0.7.2

func (this *Node) SetParent(n INode)

func (Node) T added in v0.7.2

func (this Node) T() interface{}

func (Node) Text added in v0.7.2

func (this Node) Text() string

type OgConfig added in v0.7.2

type OgConfig struct {
	Blocks      bool
	Dirty       bool
	Print       bool
	Force       bool
	Ast         bool
	SimpleAst   bool
	Quiet       bool
	Interpreter bool
	Paths       []string
	Workers     int
	OutPath     string
	NoBuild     bool
	Run         bool
}

func NewOgConfig added in v0.7.2

func NewOgConfig() *OgConfig

type Printer added in v0.7.2

type Printer struct {
	Config *OgConfig
	// contains filtered or unexported fields
}
var (
	Print *Printer
)

func NewPrinter added in v0.7.2

func NewPrinter(config *OgConfig) *Printer

func (*Printer) CompileList added in v0.7.2

func (this *Printer) CompileList(files []string, workerIds []int, nbWorkers, finished, total int)

func (Printer) Compiled added in v0.7.2

func (this Printer) Compiled(nbFiles int)

func (Printer) Compiling added in v0.7.2

func (this Printer) Compiling(nbFiles int)

func (Printer) CursorHide added in v0.7.2

func (this Printer) CursorHide()

func (Printer) CursorShow added in v0.7.2

func (this Printer) CursorShow()

func (*Printer) Error added in v0.7.2

func (this *Printer) Error(err *Error)

func (Printer) NothingToDo added in v0.7.2

func (this Printer) NothingToDo()

func (Printer) Running added in v0.7.2

func (this Printer) Running()

Jump to

Keyboard shortcuts

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