Class: SemanticInterpreter

.v3. SemanticInterpreter

new mmir.compat.v3.SemanticInterpreter()

Methods

WARNING: there must only be 1 active call at a time of either of getASRSemantic_alt and of getASRSemantic. NOTE: in difference to the original implementation, this backwards-compatibility version offers an optional 3rd parameter for a callback function, allowing asynchronous grammar execution. WARNING: A compiled grammar must already exist, i.e. this function does not support "auto-compilation", if the compiled version of the grammar does not exist yet (that will most likely result in an error). As a work-around, you can use first the non-alt version (getASRSemantic(phrase, lanc, callback)) for the same language and using a callback, and after the callback was invoked, use this alt-version for getting the ASR semantic result.
get instance of semantic interpreter