This page is no longer maintained — Please continue to the home page at www.scala-lang.org

code completion on a parser combinator parser

1 reply
fizzy
Joined: 2009-08-30,
User offline. Last seen 3 years 9 weeks ago.
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
Jason Zaugg
Joined: 2009-05-18,
User offline. Last seen 38 weeks 5 days ago.
Re: code completion on a parser combinator parser

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

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland