Compiler

Package: Libraries.Language.Compile · Inherits from: Libraries.Language.Object

Variables

  • integer JAVA_BYTECODE
  • integer DOCUMENT
  • integer PYTHON
  • number VERSION
  • integer JAVASCRIPT

Actions

AddJar(Libraries.System.File file)

This action checks if this is a jar file and then adds it as a dependency.

Parameters

AddPluginFolder(Libraries.System.File file)

This action adds a directory of plugins to be written to the output jar

Parameters

Compile(Libraries.Language.Compile.CompilerRequest request)

Tells the compiler to build a program, given a particular request object. Request objects may contain files and other information on what is to be built.

Parameters

Returns

Libraries.Language.Compile.CompilerResult

EmptyAdditionalJars()

This action returns a profiler that has tracked information about each phase of a compile as it goes.

EmptyAdditionalPluginFolders()

This action adds a directory of plugins to be written to the output jar

GetAllRequiredFiles(Libraries.Language.Compile.Symbol.SymbolTable table, Libraries.Language.Compile.Symbol.TypeChecker types, Libraries.Language.Compile.CompilerErrorManager errors, Libraries.Language.Compile.Library library)

This action is called after the parsing phase, returning an array of all files were required for building the project.

Parameters

Returns

Libraries.Containers.HashTable<text:Libraries.System.File>

GetBuildFolder()

Returns

Libraries.System.File

GetCompilerProfiler()

This action returns a profiler that has tracked information about each phase of a compile as it goes.

Returns

Libraries.Language.Compile.CompilerProfiler

GetDependencies()

This action tells the compiler what kind of output to emit.

Returns

Libraries.Containers.Iterator<Libraries.Language.Compile.Dependency>

GetExecutable(Libraries.Language.Compile.CompilerRequest request)

Parameters

Returns

Libraries.System.File

GetMainClass(Libraries.System.File theMain, Libraries.Language.Compile.Symbol.SymbolTable table)

Parameters

Returns

Libraries.Language.Compile.Symbol.Class

GetName()

Get the container name without the "all" at the end

Returns

text

GetOutputFolder()

Returns

Libraries.System.File

GetOutputSpeech()

Returns

boolean

GetOutputType()

This action sets what kind of output the compiler is going to have. By default this returns Java bytecode.

Returns

integer

GetRunFolder()

Returns

Libraries.System.File

GetStandardLibrary()

Returns

Libraries.Language.Compile.Library

GetStandardLibraryFile(text key, text fromPackage)

table

Parameters

  • key text
  • fromPackage text

Returns

Libraries.System.File

GetStandardLibraryFolder()

Returns

Libraries.System.File

GetVersion()

Returns

text

HasSpeechCallInCompile()

Returns

boolean

IsWritingJavaScriptToDisk()

Returns

boolean

IsWritingPythonToDisk()

Returns

boolean

LoadDependency(text from, text to)

Parameters

  • from text
  • to text

Parse(Libraries.System.File file, Libraries.Language.Compile.QuorumSourceListener listener)

This action scans the system classes available and parses them appropriately.

Parameters

Parse(text source, Libraries.Language.Compile.QuorumSourceListener listener)

This action sets what kind of output the compiler is going to have. By default this returns Java bytecode.

Parameters

ParseSandbox(text source, Libraries.Language.Compile.QuorumSourceListener listener, Libraries.Language.Compile.Symbol.SymbolTable table, Libraries.Language.Compile.CompilerErrorManager errors, Libraries.Language.Compile.Symbol.TypeChecker types, Libraries.System.File loc)

Parameters

Request(Libraries.Language.Compile.CodeCompletionRequest request)

we know this is the case if the tree exists and there are no errors.

Parameters

Returns

Libraries.Language.Compile.CodeCompletionResult

ScanStandardLibrary()

This action scans the system classes available and parses them appropriately.

SetName(text name)

if there are some, mark them as unparsed

Parameters

  • name text

SetOutputFolder(Libraries.System.File file)

Parameters

SetOutputSpeech(boolean doSay)

Parameters

  • doSay boolean

SetOutputType(integer type)

This action tells the compiler what kind of output to emit.

Parameters

  • type integer

SetStandardLibrary(Libraries.Language.Compile.Library library)

Parameters

SetStandardLibraryFolder(Libraries.System.File file)

Parameters

SetWritingJavaScriptToDisk(boolean write)

Parameters

  • write boolean

SetWritingPythonToDisk(boolean write)

Parameters

  • write boolean

Traverse(text source, Libraries.Language.Compile.QuorumSourceListener listener, Libraries.Language.Compile.Symbol.SymbolTable table, Libraries.Language.Compile.CompilerErrorManager errors, Libraries.Language.Compile.Symbol.TypeChecker types, Libraries.System.File loc, Libraries.Language.Compile.CompilerResult result)

This action traverses an abstract syntax tree. If there isn't one, it makes it first.

Parameters

TypeResolution(Libraries.Language.Compile.Symbol.SymbolTable table, Libraries.Language.Compile.Symbol.TypeChecker types, Libraries.Language.Compile.CompilerErrorManager errors)

Parameters

TypeResolution(Libraries.Language.Compile.Symbol.SymbolTable table, Libraries.Language.Compile.Symbol.TypeChecker types, Libraries.Language.Compile.CompilerErrorManager errors, Libraries.Language.Compile.Symbol.SymbolTable fullCompilation)

set that it's user code

Parameters

Inherited Actions

3 actions from Libraries.Language.Object