Interpreter constructor
Interpreter({
- String? source,
- TextOutputMethod? standardOutput,
- TextOutputMethod? errorOutput,
Constructor taking some MiniScript source code, and the output delegates.
Implementation
Interpreter({
this.source,
TextOutputMethod? standardOutput,
TextOutputMethod? errorOutput,
}) {
_standardOutput = standardOutput ?? ((s, eol) => print(s));
this.errorOutput = errorOutput ?? ((s, eol) => print(s));
}