Commit Graph
4 Commits
Author SHA1 Message Date
adamrk be3df4e22a modify tab to complete word when there is only one completion 2017-05-29 13:43:57 -04:00
adamrk 5b9f0abeb5 add tab completion by displaying functions matching prefix
Added a function to State which returns a list of all defined
values/functions matching a prefix. Modify the tab printout to
display 5 of these results.
2017-05-29 00:26:46 -04:00
adamrk a7a06a7684 fix bug caused by incomplete pattern in precedence function
typing in a string like "4 + sqrt(5)" would cause a crash
because in the middle of typing "sqrt" the evaluator would
treat 's' as an operator and try to compare it's precedence
to the precedence of '+'. The precedence function did not
match all patterns and this adds an otherwise case.
2017-05-29 00:20:40 -04:00
adamrk 6744136708 add printCompletions to print below the input line 2017-05-28 23:44:26 -04:00