Mark Harrah
19315265c1
taking care of deprecations removed in Scala master
2012-11-14 11:48:06 -05:00
Mark Harrah
1f88fe9d7c
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
e5ffceaef8
clean up token completions and make providing a general completion function easier
2012-07-13 14:33:27 -04:00
Mark Harrah
ec8f9884e0
fix sample method interpretation of completions argument
2012-03-25 20:36:05 -04:00
Mark Harrah
48170f649a
convenience functions for testing parsers
2012-03-10 14:16:40 -05:00
Mark Harrah
26be0c0be4
move error processing to complete/
2012-03-09 07:08:38 -05:00
Mark Harrah
392ec5150a
moved task axis before the key
2012-01-09 08:00:29 -05:00
Mark Harrah
a9ccd74eb8
fix 'not' parser combinator, add EOF
2011-12-13 17:29:08 -05:00
Mark Harrah
3d4ad0b076
fix laziness of parser failure messages
2011-09-26 08:20:07 -04:00
Mark Harrah
9756e99e16
provide consecutive tab press count for completion combinators
2011-09-20 20:51:47 -04:00
Mark Harrah
b35d9bfcfb
preserve key+configuration ambiguity through task+extra parsing. fixes #135
2011-08-05 21:59:49 -04:00
Mark Harrah
f2328e164e
add ability to hide a token until it is explicitly started
2011-07-24 22:35:27 -04:00
Mark Harrah
eec68ee8da
minor changes to parsers
2011-06-17 18:03:59 -04:00
Mark Harrah
f0608da0a8
more release-worthy compile message and analysis toString
2011-05-29 19:17:31 -04:00
Mark Harrah
f4998e1d4a
fix tab completion for filtered parsers
2011-04-26 20:49:43 -04:00
Mark Harrah
21b95c1b72
work on parser error handling
2011-04-25 20:20:05 -04:00
Mark Harrah
df1e038481
fix matched signature
2011-04-19 22:20:16 -04:00
Mark Harrah
23fed6d061
use left, some, right to avoid extra anonymous classes
2011-04-19 17:58:05 -04:00
Mark Harrah
7feebe2f85
tab completion: example-checking off by default, 'matches' convenience method
2011-03-24 21:28:02 -04:00
Mark Harrah
d264ab0ad2
add 'seq' combinator that applies one or more parsers, collecting all valid results
2011-02-21 10:00:40 -05:00
Mark Harrah
5d74d2d985
return position at which parsing fails
2011-02-18 20:57:39 -05:00
Mark Harrah
092c012b0b
make explicit the separation between parsing and execution
...
Parser[() => State] instead of Parser[State]
2011-01-22 15:01:10 -05:00
Mark Harrah
d49706b297
redo Command to use Parser
...
nested commands still need work
2011-01-22 14:01:59 -05:00
Mark Harrah
62958e2f19
fix flatMap in completion
2010-12-14 06:08:20 -05:00
Mark Harrah
ddb4381454
fixes and improvements to tab completions combinators
2010-12-13 22:44:25 -05:00
Mark Harrah
99230f02a2
fixes and additions to completion combinators
...
filter,map,flatMap
remove incorrect reductions
2010-12-08 22:16:12 -05:00
Mark Harrah
29efa529cd
parser combinators with builtin tab completion support
...
lacks memoization
lacks error messages for normal parsing
2010-12-06 19:48:49 -05:00