Libraries.Language.Compile.Compiler Documentation

Inherits from: Libraries.Language.Object

Summary

Variable Summary Table

VariablesDescription
integer JAVA_BYTECODE
integer JAVASCRIPT
integer DOCUMENT
number VERSION

Actions Summary Table

ActionsDescription
AddJar(Libraries.System.File file)This action checks if this is a jar file and then adds it as a dependenc
AddPluginFolder(Libraries.System.File file)This action adds a directory of plugins to be written to the output j
Compare(Libraries.Language.Object object)This action compares two object hash codes and returns an integer.
Compile(Libraries.Language.Compile.CompilerRequest request)system action Dispo
EmptyAdditionalJars()This action returns a profiler that has tracked information about each phase of a compile as it goe
EmptyAdditionalPluginFolders()This action adds a directory of plugins to be written to the output j
Equals(Libraries.Language.Object object)This action determines if two objects are equal based on their hash code values.
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 projec
GetBuildFolder()
GetCompilerProfiler()This action returns a profiler that has tracked information about each phase of a compile as it goe
GetDependencies()This action tells the compiler what kind of output to emi
GetExecutable(Libraries.Language.Compile.CompilerRequest request)
GetHashCode()This action gets the hash code for an object.
GetMainClass(Libraries.System.File theMain, Libraries.Language.Compile.Symbol.SymbolTable table)
GetName()system action ParseNative(text source, QuorumSourceListener listene
GetOutputFolder()
GetOutputSpeech()
GetOutputType()This action sets what kind of output the compiler is going to have.
GetRunFolder()
GetStandardLibrary()
GetStandardLibraryFile(text key, text fromPackage)tab
GetStandardLibraryFolder()
GetVersion()
HasSpeechCallInCompile()
IsWritingJavaScriptToDisk()
LoadDependency(text from, text to)
Parse(Libraries.System.File file, Libraries.Language.Compile.QuorumSourceListener listener)Get the container name without the "all" at the e
Parse(text source, Libraries.Language.Compile.QuorumSourceListener listener)if there are some, mark them as unpars
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)This action scans the system classes available and parses them appropriatel
Request(Libraries.Language.Compile.CodeCompletionRequest request)This action sets what kind of output the compiler is going to have.
ScanStandardLibrary()This action scans the system classes available and parses them appropriatel
SetName(text name)system action ParseNative(text source, QuorumSourceListener listene
SetOutputFolder(Libraries.System.File file)
SetOutputSpeech(boolean doSay)
SetOutputType(integer type)This action tells the compiler what kind of output to emi
SetStandardLibrary(Libraries.Language.Compile.Library library)
SetStandardLibraryFolder(Libraries.System.File file)
SetWritingJavaScriptToDisk(boolean write)
TypeResolution(Libraries.Language.Compile.Symbol.SymbolTable table, Libraries.Language.Compile.Symbol.TypeChecker types, Libraries.Language.Compile.CompilerErrorManager errors)e
TypeResolution(Libraries.Language.Compile.Symbol.SymbolTable table, Libraries.Language.Compile.Symbol.TypeChecker types, Libraries.Language.Compile.CompilerErrorManager errors, Libraries.Language.Compile.Symbol.SymbolTable fullCompilation)first copy all of the standard library opcodes into the arr

Actions Documentation

AddJar(Libraries.System.File file)

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

Parameters

AddPluginFolder(Libraries.System.File file)

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

Parameters

Compare(Libraries.Language.Object object)

This action compares two object hash codes and returns an integer. The result is larger if this hash code is larger than the object passed as a parameter, smaller, or equal. In this case, -1 means smaller, 0 means equal, and 1 means larger. This action was changed in Quorum 7 to return an integer, instead of a CompareResult object, because the previous implementation was causing efficiency issues.

Example Code

Object o
        Object t
        integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smalle

Parameters

Return

integer: The Compare result, Smaller, Equal, or Larger.

Compile(Libraries.Language.Compile.CompilerRequest request)

system action Dispo

Parameters

Return

Libraries.Language.Compile.CompilerResult:

EmptyAdditionalJars()

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

EmptyAdditionalPluginFolders()

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

Equals(Libraries.Language.Object object)

This action determines if two objects are equal based on their hash code values.

Example Code

use Libraries.Language.Object
        use Libraries.Language.Types.Text
        Object o
        Text t
        boolean result = o:Equals(

Parameters

Return

boolean: True if the hash codes are equal and false if they are not equal.

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 projec

Parameters

Return

Libraries.Containers.HashTable:

GetBuildFolder()

Return

Libraries.System.File

GetCompilerProfiler()

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

Return

Libraries.Language.Compile.CompilerProfiler:

GetDependencies()

This action tells the compiler what kind of output to emi

Return

Libraries.Containers.Iterator:

GetExecutable(Libraries.Language.Compile.CompilerRequest request)

Parameters

Return

Libraries.System.File

GetHashCode()

This action gets the hash code for an object.

Example Code

Object o
        integer hash = o:GetHashCode

Return

integer: The integer hash code of the object.

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

Parameters

Return

Libraries.Language.Compile.Symbol.Class

GetName()

system action ParseNative(text source, QuorumSourceListener listene

Return

text:

GetOutputFolder()

Return

Libraries.System.File

GetOutputSpeech()

Return

boolean

GetOutputType()

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

Return

integer:

GetRunFolder()

Return

Libraries.System.File

GetStandardLibrary()

Return

Libraries.Language.Compile.Library

GetStandardLibraryFile(text key, text fromPackage)

tab

Parameters

Return

Libraries.System.File:

GetStandardLibraryFolder()

Return

Libraries.System.File

GetVersion()

Return

text

HasSpeechCallInCompile()

Return

boolean

IsWritingJavaScriptToDisk()

Return

boolean

LoadDependency(text from, text to)

Parameters

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

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

Parameters

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

if there are some, mark them as unpars

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)

This action scans the system classes available and parses them appropriatel

Parameters

Request(Libraries.Language.Compile.CodeCompletionRequest request)

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

Parameters

Return

Libraries.Language.Compile.CodeCompletionResult:

ScanStandardLibrary()

This action scans the system classes available and parses them appropriatel

SetName(text name)

system action ParseNative(text source, QuorumSourceListener listene

Parameters

SetOutputFolder(Libraries.System.File file)

Parameters

SetOutputSpeech(boolean doSay)

Parameters

SetOutputType(integer type)

This action tells the compiler what kind of output to emi

Parameters

SetStandardLibrary(Libraries.Language.Compile.Library library)

Parameters

SetStandardLibraryFolder(Libraries.System.File file)

Parameters

SetWritingJavaScriptToDisk(boolean write)

Parameters

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

e

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)

first copy all of the standard library opcodes into the arr

Parameters