org.nlogo.nvm
Interface CompilerInterface
public interface CompilerInterface
Method Summary |
String |
autoConvert(String source,
boolean subprogram,
boolean reporter,
String version,
Object workspace,
boolean ignoreErrors,
boolean is3D)
|
void |
checkCommandSyntax(String source,
Program program,
Map<String,Procedure> procedures,
ExtensionManager extensionManager,
boolean parse)
|
void |
checkReporterSyntax(String source,
Program program,
Map<String,Procedure> procedures,
ExtensionManager extensionManager,
boolean parse)
|
Procedure |
compileMoreCode(String source,
Program program,
Map<String,Procedure> oldProcedures,
ExtensionManager extensionManager)
|
CompilerResults |
compileProgram(String source,
Program program,
ExtensionManager extensionManager)
|
Map<String,String> |
findIncludes(String sourceFileName,
String source,
boolean is3D)
|
Map<String,List<Object>> |
findProcedurePositions(String source,
boolean is3D)
|
org.nlogo.api.Token |
getTokenAtPosition(String source,
int position)
|
boolean |
isValidIdentifier(String s,
boolean is3D)
|
Object |
readFromFile(File currFile,
World world,
ExtensionManager extensionManager)
|
Object |
readFromString(String source,
boolean is3D)
|
Object |
readFromString(String source,
World world,
ExtensionManager extensionManager,
boolean is3D)
|
Object |
readNumberFromString(String source,
World world,
ExtensionManager extensionManager,
boolean is3D)
|
org.nlogo.api.Token[] |
tokenizeForColorization(String source,
ExtensionManager extensionManager,
boolean is3D)
|
compileProgram
CompilerResults compileProgram(String source,
Program program,
ExtensionManager extensionManager)
throws CompilerException
- Throws:
CompilerException
compileMoreCode
Procedure compileMoreCode(String source,
Program program,
Map<String,Procedure> oldProcedures,
ExtensionManager extensionManager)
throws CompilerException
- Throws:
CompilerException
checkCommandSyntax
void checkCommandSyntax(String source,
Program program,
Map<String,Procedure> procedures,
ExtensionManager extensionManager,
boolean parse)
throws CompilerException
- Throws:
CompilerException
checkReporterSyntax
void checkReporterSyntax(String source,
Program program,
Map<String,Procedure> procedures,
ExtensionManager extensionManager,
boolean parse)
throws CompilerException
- Throws:
CompilerException
autoConvert
String autoConvert(String source,
boolean subprogram,
boolean reporter,
String version,
Object workspace,
boolean ignoreErrors,
boolean is3D)
readFromString
Object readFromString(String source,
boolean is3D)
throws CompilerException
- Throws:
CompilerException
readFromString
Object readFromString(String source,
World world,
ExtensionManager extensionManager,
boolean is3D)
throws CompilerException
- Throws:
CompilerException
readNumberFromString
Object readNumberFromString(String source,
World world,
ExtensionManager extensionManager,
boolean is3D)
throws CompilerException
- Throws:
CompilerException
readFromFile
Object readFromFile(File currFile,
World world,
ExtensionManager extensionManager)
throws CompilerException,
IOException
- Throws:
CompilerException
IOException
findProcedurePositions
Map<String,List<Object>> findProcedurePositions(String source,
boolean is3D)
findIncludes
Map<String,String> findIncludes(String sourceFileName,
String source,
boolean is3D)
isValidIdentifier
boolean isValidIdentifier(String s,
boolean is3D)
getTokenAtPosition
org.nlogo.api.Token getTokenAtPosition(String source,
int position)
tokenizeForColorization
org.nlogo.api.Token[] tokenizeForColorization(String source,
ExtensionManager extensionManager,
boolean is3D)