[Qt-interest] Syntax Highlighter State Stack
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Tue Dec 30 18:59:42 CET 2008
What does this have to do with QT? This is simple C++ data structure
theory.
Scott
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Neel Basu
> Sent: Tuesday, December 30, 2008 9:51 AM
> To: Qt Interest
> Subject: [Qt-interest] Syntax Highlighter State Stack
>
> I am Making a Syntax Highlighter for PHP
> there are a lot of states such as
> enum State{
> NormalState = -1,
> InPHPCodeBlock,
> InFunction,
> InClass,
> InMultiComment,
> InCurlyBraces
> };
> Now Its possible that some code block is in InMultiComment which is in
> InFnction which is in InPHPCodeBlock
> It is not possible to keep informations about these states in a single
integer
> variable.
> (Is it ??)
> So I thought to keep a vector for this enum values which will be used
as a
> StateStack
>
> Now the question is am I on the right Track ?? or there are easier or
safer or
> more standard alternatives ??
>
> Neel
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list