Commit Graph

26 Commits

Author SHA1 Message Date
Mark Harrah 1612af8dbb Parser.failOnException method, don't let rhs of alias fail the parse. Fixes #572.
alias only parses the right hand side for tab completion help.
The assignment should happen whether or not the parse is successful because the
context may change by the time the alias is actually evaluated.
In particular, the 'set' command uses the loaded project for tab completion in 0.12.1.
When a .sbtrc file is processed, the project has not been loaded yet, so aliases
involving set fail.  Wrapping the rhs in failOnException addresses this.
2012-10-15 12:42:27 -04:00
Mark Harrah 8c06949957 clean up token completions and make providing a general completion function easier 2012-07-13 14:33:27 -04:00
Mark Harrah 41eb26ae1f fix sample method interpretation of completions argument 2012-03-25 20:36:05 -04:00
Mark Harrah 65f51cdb85 convenience functions for testing parsers 2012-03-10 14:16:40 -05:00
Mark Harrah 3587777638 move error processing to complete/ 2012-03-09 07:08:38 -05:00
Mark Harrah ec48779829 moved task axis before the key 2012-01-09 08:00:29 -05:00
Mark Harrah bca9ace1f7 fix 'not' parser combinator, add EOF 2011-12-13 17:29:08 -05:00
Mark Harrah 9ad15672d5 fix laziness of parser failure messages 2011-09-26 08:20:07 -04:00
Mark Harrah 541004419f provide consecutive tab press count for completion combinators 2011-09-20 20:51:47 -04:00
Mark Harrah 70dcae84ee preserve key+configuration ambiguity through task+extra parsing. fixes #135 2011-08-05 21:59:49 -04:00
Mark Harrah d4c76b0d0e add ability to hide a token until it is explicitly started 2011-07-24 22:35:27 -04:00
Mark Harrah dd4ab4e078 minor changes to parsers 2011-06-17 18:03:59 -04:00
Mark Harrah a94247d1b6 more release-worthy compile message and analysis toString 2011-05-29 19:17:31 -04:00
Mark Harrah 1021f0dac8 fix tab completion for filtered parsers 2011-04-26 20:49:43 -04:00
Mark Harrah daa58adc85 work on parser error handling 2011-04-25 20:20:05 -04:00
Mark Harrah d60175a337 fix matched signature 2011-04-19 22:20:16 -04:00
Mark Harrah 0608e648a5 use left, some, right to avoid extra anonymous classes 2011-04-19 17:58:05 -04:00
Mark Harrah 1dd4a1d1b1 tab completion: example-checking off by default, 'matches' convenience method 2011-03-24 21:28:02 -04:00
Mark Harrah 02d3c6bcad add 'seq' combinator that applies one or more parsers, collecting all valid results 2011-02-21 10:00:40 -05:00
Mark Harrah 6688918349 return position at which parsing fails 2011-02-18 20:57:39 -05:00
Mark Harrah 784d83af17 make explicit the separation between parsing and execution
Parser[() => State] instead of Parser[State]
2011-01-22 15:01:10 -05:00
Mark Harrah c3a265dbd3 redo Command to use Parser
nested commands still need work
2011-01-22 14:01:59 -05:00
Mark Harrah 260ee59d4a fix flatMap in completion 2010-12-14 06:08:20 -05:00
Mark Harrah 1c29522ba8 fixes and improvements to tab completions combinators 2010-12-13 22:44:25 -05:00
Mark Harrah 05195ecc7c fixes and additions to completion combinators
filter,map,flatMap
remove incorrect reductions
2010-12-08 22:16:12 -05:00
Mark Harrah 8e6b42180d parser combinators with builtin tab completion support
lacks memoization
lacks error messages for normal parsing
2010-12-06 19:48:49 -05:00