The file with the code to interpret the Please lang
- Since:
- 8/04/2021
Methods
-
inner interpret(program) → {*}
-
A function that interprets a Please AST
Parameters:
Name Type Description programObject The AST of the program to interpret Throws:
Will throw if there are syntactical errorsReturns:
* - The return value of the program -
inner interpretFromFile(fileName) → {*}
-
A function that interprets a compiled Please file
Parameters:
Name Type Description fileNamestring The name of the file Throws:
Will throw if it isn't possible to read the file or if there are syntactical errorsReturns:
* - The return value of the program -
inner run(program) → {*}
-
Parses and executes a Please program
Parameters:
Name Type Description programObject The Please program to run Throws:
Will throw if there are errors in the programReturns:
* - The return value of the program -
inner runFromFile(fileName) → {*}
-
A function that interprets a Please file
Parameters:
Name Type Description fileNamestring The name of the file Throws:
Will throw if it isn't possible to read the file or if there are errors in the programReturns:
* - The return value of the program