about summary refs log tree commit diff stats
path: root/repl.mu
Commit message (Collapse)AuthorAgeFilesLines
* 1630 - bring back replace-in-consoleKartik K. Agaram2015-06-231-34/+34
| | | | | | | | This takes away the need for multi-level escaping in scenario setup. Post-conditions like screen-should-contain are still an issue, though. Maybe each string literal should be able to specify escapes inside its syntax? Or at a per-instruction granularity?
* 1624Kartik K. Agaram2015-06-231-47/+47
| | | | | | I still want to bring back replace-in-keyboard. No, not exactly that. But saying press 8, press 8, press 8, over and over again, that's a pain.
* 1621Kartik K. Agaram2015-06-221-113/+154
| | | | | | | | repl.mu now passing again. But still I have concerns: a) Doubling backslashes in tests. Hard to tell how many levels to add. b) I think the read-key interface needs to go. But then how do we handle send-keys-to-channel and other flows like that in the chessboard app?
* 1618Kartik K. Agaram2015-06-211-2/+2
|
* 1599Kartik K. Agaram2015-06-191-1/+1
|
* 1598Kartik K. Agaram2015-06-191-0/+2
| | | | | Some tests weren't actually running for the past 5 days. Performed 5 why's.
* 1537Kartik K. Agaram2015-06-061-1/+1
|
* 1536Kartik K. Agaram2015-06-061-2/+19
| | | | Yet another repl bugfix.
* 1535 - repl: less hacky printing of resultsKartik K. Agaram2015-06-061-3/+0
|
* 1534 - print results in a different colorKartik K. Agaram2015-06-061-1/+1
|
* 1528 - assignment operator now colored redKartik K. Agaram2015-06-041-3/+51
| | | | | I'd hoped finding that off-by-one error would fix the other intermittent issues I've been seeing (commit 1512), but no they're still there.
* 1527Kartik K. Agaram2015-06-041-1/+120
|
* 1526Kartik K. Agaram2015-06-041-3/+3
|
* 1524Kartik K. Agaram2015-06-041-1/+0
|
* 1522Kartik K. Agaram2015-06-031-4/+12
| | | | | | | | Extracting a function for the prompt before starting to test it. Still not clear how I should proceed. Need to express screen dependency to 'run-interactive' somehow. Supporting generics might finally be on the critical path.
* 1521Kartik K. Agaram2015-06-031-13/+0
|
* 1520 - repl kinda workingKartik K. Agaram2015-06-021-0/+15
| | | | | But we really should test the top-level integration with 'run-interactive'.
* 1519 - repl now running commandsKartik K. Agaram2015-06-011-0/+4
| | | | Was missing a newline. More brittleness.
* 1518 - still horribly brokenKartik K. Agaram2015-06-011-1/+34
| | | | | | Just figured out why a first keystroke of backspace was sending me out for a spin: run_interactive needs all early exits that don't actually run anything to increment the current_step_index(). FML, this is lousy..
* 1516Kartik K. Agaram2015-05-301-2/+2
|
* 1514 - cleaner way to show backspaces in fake keyboardKartik K. Agaram2015-05-301-54/+12
| | | | In the process we now support unicode in all mu strings!
* 1513 - final repl test was never failingKartik K. Agaram2015-05-301-4/+4
| | | | | | | | I'm still having trouble with prematurely closed strings or strings never being closed. Remember that when escaping brackets inside scenarios you usually need two levels of escaping. The single-level is a no-op and usually misleading. When brackets balance, don't bother escaping. When they don't, escape twice.
* 1512Kartik K. Agaram2015-05-291-1/+0
| | | | | | | | | | As expected, I've already found two bugs in the repl during manual testing. Still don't have a good characterization of when things go off the rails. But certainly hitting backspace too many times isn't messing things up as I'd feared. Which might also be a bug, if the program isn't behaving as I expect.
* 1511 - repl finally passing all its tests againKartik K. Agaram2015-05-281-2/+9
| | | | | | | But I'm sure the next bug is nearby. And even if there's a solution around here, the logic is now quite convoluted, with strings sometimes returning on completion and sometimes recursing further in. We'll need to rethink this.
* 1510Kartik K. Agaram2015-05-281-0/+19
| | | | | slurp-string should sometimes return and sometimes recurse. Graah. But the trace browser is awesome.
* 1509Kartik K. Agaram2015-05-281-0/+3
| | | | | Ah, the failing test isn't what I thought. This is a regression. Let's debug this using the trace-browser! Little tweak as I use it.
* 1508Kartik K. Agaram2015-05-281-5/+31
| | | | Aaalmost there..
* 1507Kartik K. Agaram2015-05-281-5/+24
| | | | | | More groundwork for dealing with backspacing back into string: instead of simply exiting the current stack frame when the string completes, create a *new* stack frame. More tests failing, but we're getting closer.
* 1504Kartik K. Agaram2015-05-281-11/+55
| | | | | repl still needs to handle backspacing *back into* strings. This tries to lay the groundwork.
* 1503Kartik K. Agaram2015-05-281-0/+2
|
* 1499 - now repl supports backspacing over stringsKartik K. Agaram2015-05-281-0/+54
|
* 1495Kartik K. Agaram2015-05-271-0/+30
|
* 1494Kartik K. Agaram2015-05-271-5/+188
|
* 1493 - less hard-coded version anticipating stringsKartik K. Agaram2015-05-271-24/+48
|
* 1492Kartik K. Agaram2015-05-271-1/+24
|
* 1490 - repl: can backspace over commentsKartik K. Agaram2015-05-271-2/+80
|
* 1489 - repl: initial support for colorKartik K. Agaram2015-05-271-1/+27
|
* 1487 - repl working interactivelyKartik K. Agaram2015-05-271-2/+3
|
* 1486 - repl: hitting enter now workingKartik K. Agaram2015-05-271-1/+1
|
* 1485 - start of a repl toolKartik K. Agaram2015-05-271-0/+72
| | | | | | | | | | | Doesn't actually work interactively yet; for some reason it prints in color, enter doesn't work, etc. It'll be interesting to try to add color and history as separate 'layers' using before/after. I'll also likely have to delete traces for its tests at some point as they inevitably explode in size.
* 691Kartik K. Agaram2015-02-011-105/+0
|
* 690 - convention: '$' commands for debugging onlyKartik K. Agaram2015-02-011-6/+6
| | | | | | Swap printing generalized objects using arc's infrastructure to be the $-prefixed debug helper, while the erstwhile $print-key-to-host becomes the primitive print-character to host.
* 680Kartik K. Agaram2015-01-291-10/+10
| | | | 's-expression' is too jargon-y.
* 637 - show repl errors properlyKartik K. Agaram2015-01-261-0/+2
| | | | | We'll never be able to avoid dying on syntax errors. But hopefully we can make sessions easy to restore.
* 636 - a repl utility for arc in muKartik K. Agaram2015-01-261-0/+103
Next step: convenience features like balancing parens, coloring parens. For that I'll have to leave line-based buffering behind. My workflow seems to be spike-test-clean.