module documentation

REPL App for Picoware Copyright (c) 2026 JBlanked GPL-3.0 License https://www.github.com/jblanked/Picoware Last Updated: 2026-05-07

Function run Run the app.
Function start Start the app.
Function stop Stop the app.
Function __parse Execute input text and return the output as a string.
Function _commit_input Append the output and a new prompt to the editor's existing text.
Function _continue_input Append a continuation prompt for multi-line input.
Function _get_current_input Return the text between the last prompt and the cursor.
Function _is_incomplete Return True if line opens a multi-line block and needs continuation.
Constant _PROMPT Undocumented
Constant _PROMPT_CONT Undocumented
Variable _multiline_buffer Undocumented
Variable _repl_context Undocumented
Variable _text_editor Undocumented
def run(view_manager):

Run the app.

Parameters
view_manager:ViewManagerThe view manager context.
def start(view_manager) -> bool:

Start the app.

Parameters
view_manager:ViewManagerThe view manager context.
Returns
boolTrue on success.
def stop(view_manager):

Stop the app.

Parameters
view_manager:ViewManagerThe view manager context.
def __parse(text: str) -> str:

Execute input text and return the output as a string.

Parameters
text:strThe input to execute.
Returns
strThe executed output.
def _commit_input(output: str):

Append the output and a new prompt to the editor's existing text.

Parameters
output:strThe output to append.
def _continue_input():

Append a continuation prompt for multi-line input.

def _get_current_input() -> str:

Return the text between the last prompt and the cursor.

def _is_incomplete(line: str) -> bool:

Return True if line opens a multi-line block and needs continuation.

Parameters
line:strThe line to check.
Returns
boolTrue if more input is needed.
_PROMPT =

Undocumented

Value
const('>>> ')
_PROMPT_CONT =

Undocumented

Value
const('... ')
_multiline_buffer: list =

Undocumented

_repl_context: dict =

Undocumented

_text_editor =

Undocumented