Hi Kevin,

TK-UI CSS parser use Flute parser by default but you can use another SAC
Parser if you want.
Today I have founded 3 SAC parser implementation : Batik, Flute easystate
which implement CSS2 specification but not CSS3.

Into TK-UI I wanted manage namespace described into CSS3 specification, to
write selector by setting package.
Imagine you have two classes Label

org.eclipse.swt.widgets.Label and my.Label

If you want disting selector between two Label, you can use CSS3 namespace
and write his CSS :

@namespace swt "org.eclipse.swt.widgets";
@namespace my "my";

swt|Label {
   color;red;
}

my|Label {
   color;red;
}

So I try to update SAC Parser Batik, Flute...and I found Flute was the
easier to update, because Flute is based on JavaCC
where you have Parser.jj JavaCC file which desribe CSS2 grammar. I have
updated this file to manage CSS3 namespace.
See customized Flute parser at
http://tk-ui.svn.sourceforge.net/svnroot/tk-ui/org.akrogen.tkui.css/trunk/org.w3c.flute

Flute jar into distribution is 1-3 (it's my flute parser). The real flute
parser is 1-2 (2 means support CSS2).

Regards Angelo





I have used Flute Parser because I have improved it to manage CSS3
namespace.

2008/8/8 Kevin McGuire <[EMAIL PROTECTED]>

>
> Hi Angelo,
>
> I was looking at your TK-UI css.core and noticed it uses the Flute parser.
>  I was wondering if you could discuss why you chose this particular SAC
> parser?  (vs. batik for example).
>
> Regards
> Kevin
> _______________________________________________
> eclipse-incubator-e4-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/eclipse-incubator-e4-dev
>
>
_______________________________________________
eclipse-incubator-e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/eclipse-incubator-e4-dev

Reply via email to