Libraries.Language.Compile.Compiler Documentation
Inherits from: Libraries.Language.Object
Summary
Variable Summary Table
Variables | Description |
---|---|
integer DOCUMENT | |
number VERSION | |
integer JAVASCRIPT | |
integer JAVA_BYTECODE |
Actions Summary Table
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
- Libraries.Language.Object: The object to compare to.
Return
integer: The Compare result, Smaller, Equal, or Larger.
Compile(Libraries.Language.Compile.CompilerRequest request)
Parameters
Return
Libraries.Language.Compile.CompilerResult
Dispose()
This action tells the compiler under the hood to dispose of resources after the next compil
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
- Libraries.Language.Object: The to be compared.
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
- Libraries.Language.Compile.Symbol.SymbolTable
- Libraries.Language.Compile.Symbol.TypeChecker
- Libraries.Language.Compile.CompilerErrorManager
- Libraries.Language.Compile.Library
Return
Libraries.Containers.HashTable:
GetBuildFolder()
Return
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
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()
Return
text
GetOutputFolder()
Return
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
GetStandardLibrary()
Return
Libraries.Language.Compile.Library
GetStandardLibraryFile(text key, text fromPackage)
tab
Parameters
Return
GetStandardLibraryFolder()
Return
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
ParseNative(text source, Libraries.Language.Compile.QuorumSourceListener listener)
Parameters
ParseNative(Libraries.System.File file, Libraries.Language.Compile.QuorumSourceListener listener)
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
- Libraries.Language.Compile.QuorumSourceListener
- Libraries.Language.Compile.Symbol.SymbolTable
- Libraries.Language.Compile.CompilerErrorManager
- Libraries.Language.Compile.Symbol.TypeChecker
- Libraries.System.File
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)
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)
Parameters
- Libraries.Language.Compile.Symbol.SymbolTable
- Libraries.Language.Compile.Symbol.TypeChecker
- Libraries.Language.Compile.CompilerErrorManager
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