about summary refs log tree commit diff stats
path: root/run_one_test
Commit message (Collapse)AuthorAgeFilesLines
* 6200 - --dump is not needed for incremental tracesKartik Agaram2020-04-091-1/+2
| | | | | | | | This undoes commit 5764, which was ill-considered. We already had incremental prints at that point to 'last_run'. As long as we don't run out of RAM on large traces, there doesn't seem any need to print to stderr. Now '--dump' is only needed when juggling multiple traces.
* 5880Kartik Agaram2020-01-101-1/+1
|
* 5865Kartik Agaram2020-01-021-1/+1
| | | | Give the bootstrap C++ program a less salient name.
* 5864Kartik Agaram2020-01-021-1/+1
|
* 5675 - move helpers from subx-common into layersKartik Agaram2019-09-191-1/+1
| | | | | | | | | | | | | | | | This undoes 5672 in favor of a new plan: Layers 000 - 099 are for running without syntax sugar. We use them for building syntax-sugar passes. Layers 100 and up are for running with all syntax sugar. The layers are arranged in approximate order so more phases rely on earlier layers than later ones. I plan to not use intermediate syntax sugar (just sigils without calls, or sigils and calls without braces) anywhere except in the specific passes implementing them.
* 5662Kartik Agaram2019-09-151-1/+1
| | | | Fix several breakages.
* 5638Kartik Agaram2019-09-071-6/+1
|
* 5618Kartik Agaram2019-09-041-3/+9
|
* .Kartik Agaram2019-08-251-1/+1
|
* skip building apps when running a single testKartik Agaram2019-08-251-3/+3
| | | | Environment variables allow me to have non-local effects inside scripts.
* 5509Kartik Agaram2019-08-111-0/+22
"> "github.com/gdamore/tcell" ) type Stack struct { children []Drawable onInvalidate []func(d Drawable) } func NewStack() *Stack { return &Stack{} } func (stack *Stack) Children() []Drawable { return stack.children } func (stack *Stack) OnInvalidate(onInvalidate func(d Drawable)) { stack.onInvalidate = append(stack.onInvalidate, onInvalidate) } func (stack *Stack) Invalidate() { for _, fn := range stack.onInvalidate { fn(stack) } } func (stack *Stack) Draw(ctx *Context) { if len(stack.children) > 0 { stack.Peek().Draw(ctx) } else { ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', tcell.StyleDefault) } } func (stack *Stack) Push(d Drawable) { if len(stack.children) != 0 { stack.Peek().OnInvalidate(nil) } stack.children = append(stack.children, d) d.OnInvalidate(stack.invalidateFromChild) stack.Invalidate() } func (stack *Stack) Pop() Drawable { if len(stack.children) == 0 { panic(fmt.Errorf("Tried to pop from an empty UI stack")) } d := stack.children[len(stack.children)-1] stack.children = stack.children[:len(stack.children)-1] stack.Invalidate() d.OnInvalidate(nil) if len(stack.children) != 0 { stack.Peek().OnInvalidate(stack.invalidateFromChild) } return d } func (stack *Stack) Peek() Drawable { if len(stack.children) == 0 { panic(fmt.Errorf("Tried to peek from an empty stack")) } return stack.children[len(stack.children)-1] } func (stack *Stack) invalidateFromChild(d Drawable) { stack.Invalidate() }