- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
code completion on a parser combinator parser
Thu, 2012-02-16, 22:36
Hi Everyone,I have had some great success with implementing a DSL using the parser combinator library. The users love it so much they want code completion. I wanted to ping this mailing list to see if anyone has any advice on how to proceed. The DSL is an SQL Where clause like expression language. Ideally I would like to build this on top of the parser combinator but I have no clue how to go about parsing an incomplete statement.
Any help/wisdom/pointers are appreciated.
cheers,Glen
Any help/wisdom/pointers are appreciated.
cheers,Glen
On Thu, Feb 16, 2012 at 10:36 PM, Glen Marchesani wrote:
> Hi Everyone,
> I have had some great success with implementing a DSL using the parser
> combinator library. The users love it so much they want code completion. I
> wanted to ping this mailing list to see if anyone has any advice on how to
> proceed. The DSL is an SQL Where clause like expression language. Ideally
> I would like to build this on top of the parser combinator but I have no
> clue how to go about parsing an incomplete statement.
>
> Any help/wisdom/pointers are appreciated.
SBT contains custom parser combinators that are coupled with code completion:
https://github.com/harrah/xsbt/tree/0.12/util/complete
-jason