Versions in this module Expand all Collapse all v0 v0.7.2 Sep 22, 2018 v0.7.1 Sep 15, 2018 v0.7.0 Sep 13, 2018 Changes in this version + func RunInterpreter(compiler *OgCompiler) + type ErrorHandler struct + func NewErrorHandler() *ErrorHandler + func (this ErrorHandler) Recover(p antlr.Parser, r antlr.RecognitionException) + type ErrorListener struct + func NewErrorListener(filePath, source string) *ErrorListener + func (this *ErrorListener) SyntaxError(rec antlr.Recognizer, offendingSymbol interface{}, line, column int, ...) + type File struct + Ast ast.INode + Name string + OutPath string + Output string + Path string + Source []byte + func NewFile(filePath, outPath string) *File + func (this *File) Format() error + func (this File) Write() + type Og struct + Compiler *OgCompiler + Config *OgConfig + Printer *Printer + func NewOg(config *OgConfig) *Og + func (this Og) Build() error + func (this Og) Run() error + func (this Og) RunBinary() error + type OgCompiler struct + Config *OgConfig + Files []*File + Parser *OgParser + Preproc *OgPreproc + Printer *Printer + func NewOgCompiler(config *OgConfig, printer *Printer) *OgCompiler + func (this *OgCompiler) Compile() error + func (this *OgCompiler) ParseFile(file *File) error + type OgConfig struct + Ast bool + Blocks bool + Dirty bool + Force bool + Interpreter bool + NoBuild bool + OutPath string + Paths []string + Print bool + Quiet bool + Run bool + Workers int + func NewOgConfig() *OgConfig + type OgParser struct + Config *OgConfig + func NewOgParser(config *OgConfig) *OgParser + func (this *OgParser) Parse(file *File) error + func (this *OgParser) ParseInterpret(file *File) error + func (this *OgParser) ParseStmt(file *File) error + type OgPreproc struct + func NewOgPreproc() *OgPreproc + func (this *OgPreproc) Run(file *File) + type Pool struct + Finished int + In chan *File + Out chan error + Printer *Printer + Size int + Total int + Workers []*Worker + func NewPool(size int, nbJobs int, printer *Printer, cb WorkerCallback) *Pool + func (this *Pool) Queue(job *File) + func (this *Pool) Run() error + func (this Pool) Print() + type Printer struct + Config *OgConfig + func NewPrinter(config *OgConfig) *Printer + func (this *Printer) CompileList(files []string, workerIds []int, nbWorkers, finished, total int) + func (this Printer) Compiled(nbFiles int) + func (this Printer) Compiling(nbFiles int) + func (this Printer) CursorHide() + func (this Printer) CursorShow() + func (this Printer) NothingToDo() + func (this Printer) Running() + type Worker struct + In chan *File + Job WorkerCallback + Out chan error + Processing *File + func NewWorker(i chan *File, out chan error, job WorkerCallback) *Worker + func (this *Worker) Run() + type WorkerCallback (func(*File) error)