og

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(config_ OgConfig) error

func Parse

func Parse(filePath, str string) string

func ParseInterpret added in v0.3.0

func ParseInterpret(filePath, str string) string

func Preproc

func Preproc(str string) string

func ProcessFile added in v0.1.1

func ProcessFile(filePath string, data string, isInterpret bool) (string, error)

func RunInterpreter added in v0.3.0

func RunInterpreter()

Types

type ErrorHandler added in v0.3.0

type ErrorHandler struct {
	*antlr.DefaultErrorStrategy
}

func NewErrorHandler added in v0.3.0

func NewErrorHandler() *ErrorHandler

func (ErrorHandler) Recover added in v0.3.0

func (this ErrorHandler) Recover(p antlr.Parser, r antlr.RecognitionException)

type ErrorListener added in v0.3.0

type ErrorListener struct {
	*antlr.DefaultErrorListener
	// contains filtered or unexported fields
}

func NewErrorListener added in v0.3.0

func NewErrorListener(filePath, source string) *ErrorListener

func (*ErrorListener) SyntaxError added in v0.3.0

func (this *ErrorListener) SyntaxError(rec antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)

type OgConfig added in v0.1.1

type OgConfig struct {
	Blocks  bool
	Dirty   bool
	Print   bool
	Verbose bool
	Paths   []string
	OutPath string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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