Expression module¶
-
class
Interpreters.Expression.Expression(token_index: int, token_array=None)¶ Bases:
object-
static
append_result(msg)¶ Append the results to logs
-
eat(token_type)¶ Consume the actual token and move to the next based on token array
-
end_point()¶ Consume the endpoint token and move to the next based on token array
-
error()¶ Raise the custom exception
-
logs= []¶
-
static
print_logs()¶ Print the logs
-
run_glc()¶ Empty method to be implemented in every class
-
run_thread(thread: Interpreters.RThread.ThreadWithReturnValue)¶ Start the receive thread
- Parameters
thread – thread to be executed
-
update_interpreter_params()¶ Update the token_index and current_token of the interpreter
-
static