Constructor
new TranslationResult(program, errors)
Create a new record of a translation attempt.
Parameters:
| Name | Type | Description |
|---|---|---|
program |
The translated program as a lambda if successful or null if unsuccessful. | |
errors |
Any errors encountered or empty list if no errors. |
- Source:
Methods
getErrors()
Get errors encountered in compiling the QubecTalk script.
- Source:
Returns:
Errors or empty list if no errors.
getProgram()
Get the program as an object.
- Source:
Returns:
The compiled program as an object or null if translation failed.