implementation question

ams
2005-08-16
2012-12-06
  • ams

    ams - 2005-08-16

    Hi -- I was wondering, in your eclipsefp/Haskell implementation, do you do lexing/parsing in eclipse as part of syntax checking & coloring etc.?

     
    • Leif Frenzel

      Leif Frenzel - 2005-08-17

      Hi,

      not as part of the syntax coloring. The syntax coloring is a very simple rule-based implementation of the Eclipse editor APIs (rules being of the sort 'from double minus character to the end of the line, apply the single-line-comment color'). The syntax checking is done by running the ghc everytime the code is saved and parsing its output.

      We have recently added a parser implementation that reads an object model of the source code. It parses the source code and the results of that are seen on the Outline view and are also used in the code folding. That parser is the Haskell parser implementation in the language-src package that ships with ghc, and is called via a native (i.e. JNI) bridge in a dll. It works on Windows only at the moment, and therefore the Outline and code folding stuff is enabled only on Windows currently.

      Hope this answers your question,
      Ciao,
      Leif

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks