HTML XML DTD
Jonathan Schmidt-Dominé - Developer
devel at the-user.org
Tue Mar 23 10:23:57 UTC 2010
Hi Ruan!
Some comments:
-Why do you need multiple CDATA-tokens? It would be most convenient to create
a simple TEXT-token. The parse should not care about if there is a CDATA_END
or anything like this. If you think that there is any usage for differntiation
between normal text and cdata-text, there shouldbe a single CDATA-token, not
CDATA_END and CDATA_START.
-It is quite simple to build a tree:
(element | TEXT)*
-> block ;;
LT TEXT [: QString text = currentToken(); /* pseudo-code */ :]
(#attributes=attribute)* (FSGT | GT (?[ sgmlNoClosing(text) /* pseudo-code */
:] 0 | block=block LT TEXT [: if(!matches(text, currentToken()) /* xml: case-
sensitivem sgml : case-insensitive */ ) { /* error */ } :] GT ;;
So you can build a tree.
Jonathan
------------------------
Automatisch eingefügte Signatur:
Es lebe die Freiheit!
Stoppt den Gebrauch proprietärer Software!
Operating System: GNU/Linux
Kernel: Linux 2.6.31.8-0.1-default
Distribution: openSuSE 11.2
Qt: 4.6.3
KDE: 4.4.67 (KDE 4.4.67 (KDE 4.5 >= 20100310)) "release 3"
KMail: 1.13.1
http://gnu.org/
http://kde.org/
http://windows7sins.org/
More information about the KDevelop-devel
mailing list