Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Need help on defining grammer for CSS 2.1
Need help on defining grammer for CSS 2.1 [message #686151] Tue, 21 June 2011 15:25
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I've already posted some questions in the last weeks where I asked for
help on how to implement a grammer and editor for CSS 2.1.

I got quite far already but now I'm hitting a road block because my real
target is to write a CSS-Editor for JavaFX which uses an extended
CSS-Syntax for defining gradients as part of the CSS [1].

The problem is that their gradient definition is not vaild when you look
at the BNF for CSS[2] I translated to xtext [3] because of their usage
of '('...')'.

While I could say that they've speced their gradient definition
inappropriately (and I'm quite sure I'm right and filed a bug against
them) - does anybody have an idea how I could fix the problem in my grammer?

Tom

[1]http://download.oracle.com/docs/cd/E17802_01/javafx/javafx/1.3/docs/api/javafx.scene/doc-files/cssref.html#typepaint
[2]http://www.w3.org/TR/CSS21/grammar.html
[3]https://github.com/tomsontom/e-fx-clipse/blob/master/at.bestsolution.efxclipse.tooling.css/src/at/bestsolution/efxclipse/tooling/css/CssDsl.xtext
Previous Topic:[Xtext 1.0.1]Problem with cross-referencing and duplicated names
Next Topic:Embedding an Xtext editor inside a Composite
Goto Forum:
  


Current Time: Tue Apr 23 12:33:09 GMT 2024

Powered by FUDForum. Page generated in 0.02822 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top