Methods
compile(input) → {TranslationResult}
Compiles QubecTalk code into an object representation.
Parses the input code using ANTLR and translates it into objects
representing the program structure. Reports any syntax errors encountered.
Parameters:
| Name | Type | Description |
|---|---|---|
input |
string | The QubecTalk code to compile. |
- Source:
Returns:
Result containing either the compiled program
object or any encountered errors.
- Type
- TranslationResult