Repl class final
An interactive Brainfuck read-eval-print loop.
Source lines are read one at a time and executed on a single shared
Interpreter, so tape and pointer state persist across lines.
Brackets may span lines: while a [ stays unclosed, input is
buffered behind a ... continuation prompt instead of being
executed or reported as an error.
Constructors
-
Repl({required Stream<
String> lines, required BrainfuckIO io, required StringSink out}) - Creates a REPL.
- Repl.stdio()
-
Creates a REPL wired to stdin and stdout.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
) → Future< void> - Runs the interactive loop until the session ends.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited