Interpreter.fromLines constructor

Interpreter.fromLines({
  1. required List<String> sourceLines,
  2. TextOutputMethod? standardOutput,
  3. TextOutputMethod? errorOutput,
})

Constructor taking source code in the form of a list of strings.

Implementation

Interpreter.fromLines({
  required List<String> sourceLines,
  TextOutputMethod? standardOutput,
  TextOutputMethod? errorOutput,
}) : this(
          source: sourceLines.join("\n"),
          standardOutput: standardOutput,
          errorOutput: errorOutput);