Hi -- I was wondering, in your eclipsefp/Haskell implementation, do you do lexing/parsing in eclipse as part of syntax checking & coloring etc.?
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,
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.