HTInterpreter constructor
HTInterpreter({
- InterpreterConfig? config,
- required HTResourceContext<
HTSource> sourceContext, - HTLexicon? lexicon,
A bytecode interpreter.
Implementation
HTInterpreter(
{InterpreterConfig? config,
required this.sourceContext,
HTLexicon? lexicon})
: config = config ?? InterpreterConfig(),
_lexicon = lexicon ?? HTDefaultLexicon() {
globalNamespace = HTNamespace(lexicon: _lexicon, id: Semantic.global);
_currentNamespace = globalNamespace;
}