[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta-devel
Subject:    Re: [quanta-devel] parser in Quanta
From:       Andras Mantia <amantia () kde ! org>
Date:       2006-01-13 17:43:23
Message-ID: 200601131943.27685.amantia () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Friday 13 January 2006 14:16, Jens Herden wrote:
> Is it? I think that Quanta is currently analysing the document first
> and then starts the parsing.

No, it starts to parse as XML. If it finds a special area (the XML DTEP 
tells us which kind of special areas can be inside), starts to parse in 
a "quick" way this to find the end of the area. Inside the node tree 
for the special area there will be created only one node (IIRC, maybe 3 
if the start and end nodes are created as part of the special area). 
Once the XML parsing is over, as soon as there is time for it, the 
parser goes through the node tree and parser in detail all those 
special area nodes and during this in detail parsing the node tree is 
completed.

> I would like to have a solution where we start the parsing and detect
> the begin of a special area, switch the parse modus and switch back
> when we detect the end of the special area.
> So one parser run should be enough to parse the HTML/XML and through
> out the special areas. Do you see any reason why this should not
> work?

I fail to see why it is different what we have now from what you say.

> So we could improve Quanta further if we would parse Javascript as
> well?

Sure. Actually there was no "real" DTEP created for JavaScript ever, so 
right now Quanta parses in a generic way (searches for { } structures 
for example, if I'm right. I wrote that part quite a long time ago.)

Andras

-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org

[Attachment #5 (application/pgp-signature)]

_______________________________________________
quanta-devel mailing list
quanta-devel@kde.org
https://mail.kde.org/mailman/listinfo/quanta-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic