Compiler
Package: Libraries.Language.Compile · Inherits from: Libraries.Language.Object
Variables
integer JAVA_BYTECODEinteger DOCUMENTinteger PYTHONnumber VERSIONinteger 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
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
tableLibraries.Language.Compile.Symbol.SymbolTabletypesLibraries.Language.Compile.Symbol.TypeCheckererrorsLibraries.Language.Compile.CompilerErrorManagerlibraryLibraries.Language.Compile.Library
Returns
GetBuildFolder()
Returns
GetCompilerProfiler()
This action returns a profiler that has tracked information about each phase of a compile as it goes.
Returns
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
GetMainClass(Libraries.System.File theMain, Libraries.Language.Compile.Symbol.SymbolTable table)
Parameters
Returns
GetName()
Get the container name without the "all" at the end
Returns
text
GetOutputFolder()
Returns
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
GetStandardLibrary()
Returns
GetStandardLibraryFile(text key, text fromPackage)
table
Parameters
keytextfromPackagetext
Returns
GetStandardLibraryFolder()
Returns
GetVersion()
Returns
text
HasSpeechCallInCompile()
Returns
boolean
IsWritingJavaScriptToDisk()
Returns
boolean
IsWritingPythonToDisk()
Returns
boolean
LoadDependency(text from, text to)
Parameters
fromtexttotext
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
sourcetextlistenerLibraries.Language.Compile.QuorumSourceListener
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
ScanStandardLibrary()
This action scans the system classes available and parses them appropriately.
SetName(text name)
if there are some, mark them as unparsed
Parameters
nametext
SetOutputFolder(Libraries.System.File file)
Parameters
SetOutputSpeech(boolean doSay)
Parameters
doSayboolean
SetOutputType(integer type)
This action tells the compiler what kind of output to emit.
Parameters
typeinteger
SetStandardLibrary(Libraries.Language.Compile.Library library)
Parameters
SetStandardLibraryFolder(Libraries.System.File file)
Parameters
SetWritingJavaScriptToDisk(boolean write)
Parameters
writeboolean
SetWritingPythonToDisk(boolean write)
Parameters
writeboolean
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