Machine constructor
Machine(
- Context globalContext,
- TextOutputMethod? standardOutput
Implementation
Machine(Context globalContext, TextOutputMethod? standardOutput)
: _globalContext = globalContext,
standardOutput = standardOutput ?? ((s, eol) => print(s)) {
globalContext.vm = this;
stack = List<Context>.from([globalContext]);
stopwatch ??= Stopwatch();
}