Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-dev] using lex/yacc files for syntax highlighting

Hi Chet,

Well, I wasn't planning on reading the whole program all the time ;-)

In PL/I, each statement is separated by a ';', so at least in teory it should 
be possible to just call the parser for one statement at the time.

So if lex/yacc is not the best choice, what is ? 

How is it done for the Java editor ? (references to the source code whould be 
really appreciated)

Henrik


On Monday 17 January 2005 02.51, Chet Murphy wrote:
> Hi Henrik,
>
> Lex/yacc is not a good choice for syntax highlighting. Syntax
> highlighting requires an dynamic parser that is fault tolerant and that
> can start parsing at the last known good re-parse point. You do not want
> to run a full parser each time syntax coloring is needed while editing.
>
> Chet Murphy
> Modelworks Software
> cmurphy@xxxxxxxxxxxxxx
> http://www.modelworks.com
> voice: 425 488 5686
> fax: 425 488 3986
>
> -----Original Message-----
> From: platform-dev-admin@xxxxxxxxxxx
> [mailto:platform-dev-admin@xxxxxxxxxxx]On Behalf Of Henrik Sorensen
> Sent: Sunday, January 16, 2005 4:42 PM
> To: platform-dev@xxxxxxxxxxx
> Subject: [platform-dev] using lex/yacc files for syntax highlightning
>
>
> please let me know if this is not the right mailinglist for hl related
> questions.
>
> I am working on a new frontend for gcc for the programming language
> PL/I.
> (pl1gcc.sourceforge.net)
>
> Now that I have the lex scanner and yacc (bison) parser in a good shape,
> it
> would be natural to integrate this into the powerfull eclipse editor
> framework.
>
> What is the best approach for this ?
>
>
> Henrik
>
>
> _______________________________________________
> platform-dev mailing list
> platform-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-dev
>
> _______________________________________________
> platform-dev mailing list
> platform-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-dev


Back to the top