Re: Upload-Plugin
Andras Mantia <[email protected]> Mon, 11 Feb 2008 22:40:12 +0200
| Newsgroups | gmane.comp.kde.devel.quanta |
|---|---|
| Message-ID | <[email protected]> |
On Monday 11 February 2008, Niko Sams wrote: > > Currently the parser from 3.5 > > is activated, but there is a new one in progress. > > What languages will be supported by this new parser? I don't know. :) In theory, any. In practice, you need to write state machines that describe the language. We only started with XML. See quanta/data/statemachines for a description and the example one we wrote. The code itself is in quanta/quantacore/parsers (well, the old parser is also there parser.*, sa* and parsercommon.* belongs to the old one). It parses the XML (without special areas, like PHP inside), and I remember that Jens (another developer who helped us) demoed to me that it builds the structure tree. But we need to create the state machine for included languages (PHP, JavaScript), make this work inside XML and, what is very important, implement the parse-as-you-type. That is the trickiest part, as you need to parse as little as possible, to be fast, otherwise the user experience will be bad. How to store the parse result is another question. Jens wanted to store directly inside KHTML, but there are some problems, IIRC because KHTML only accepts HTML elements, not any XML. He also wanted to try using webkit instead. Doing so (storing the result directly in KHTML/webkit) would help developing the VPL mode. But I'm not sure we can get over on those problems, so we might do what we did until now: store the result in our own node tree. Ok, that was a quick intro to the parser. :) Andras -- Quanta Plus developer - http://quanta.kdewebdev.org K Desktop Environment - http://www.kde.org _______________________________________________ quanta-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/quanta-devel
signature.asc
(application/pgp-signature, 194 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQBHsLKxTQdfac6L/08RAmjoAJ9X9FvJZ8cWOskcqxOL/q0CLmAKJwCeJANG fvKhPsjJTBt9NuV25BTfmII= =UBC0 -----END PGP SIGNATURE-----