| 359 | return output |
| 360 | |
| 361 | def get_suggest(self, program_text: str, incremental_step: int) -> list[tuple[str, str]]: |
| 362 | step_bit = "1?" if incremental_step == 1 else str(incremental_step) |
| 363 | regex = f"# suggest{step_bit}: (--[a-zA-Z0-9_\\-./=?^ ]+ )*([a-zA-Z0-9_.:/?^ ]+)$" |
| 364 | m = re.findall(regex, program_text, flags=re.MULTILINE) |
| 365 | return m |
| 366 | |
| 367 | def get_inspect(self, program_text: str, incremental_step: int) -> list[tuple[str, str]]: |
| 368 | step_bit = "1?" if incremental_step == 1 else str(incremental_step) |