S swaps sign of literal, shift + s swaps sign mode of readout
This commit is contained in:
parent
776856a6a5
commit
729ea8d48d
10
main.go
10
main.go
@ -213,6 +213,16 @@ func onPress (button stone.Button, modifiers stone.Modifiers) {
|
|||||||
application.Draw()
|
application.Draw()
|
||||||
|
|
||||||
case 's':
|
case 's':
|
||||||
|
switch selectedExpression.(type) {
|
||||||
|
case *IntegerLiteral:
|
||||||
|
integer := selectedExpression.(*IntegerLiteral)
|
||||||
|
integer.value *= -1
|
||||||
|
}
|
||||||
|
|
||||||
|
redraw()
|
||||||
|
application.Draw()
|
||||||
|
|
||||||
|
case 'S':
|
||||||
showSigned = !showSigned
|
showSigned = !showSigned
|
||||||
redraw()
|
redraw()
|
||||||
application.Draw()
|
application.Draw()
|
||||||
|
Loading…
Reference in New Issue
Block a user