Machine constructor

Machine(
  1. Context globalContext,
  2. 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();
}