Parser

Lukas Renggli renggli at iam.unibe.ch
Wed Aug 4 13:21:51 MEST 2004



Ohhh sorry, forget about the last paragraph in my last mail. I already 
answered a question that you didn't ask there!

>     * I think that not only internal link, but any link, should have a
> kind of "resolver" let s say a "structureFrom" or I don t know. It
> would make easier to program property about links.

Most of the time this isn't necessary: you could put an inst-var into 
your visitor class, remembering the parent-structure of your links.

>     * about the parser, it cannot understand html codes. So someone can
> write in a page a link in html code, and it cannot be detect as a link
> ( and then it is impossible to know if the target is good or not).
> Should it be improved ?

Wikis are plain text and usually do not contain HTML. If there is HTML 
inside the wiki document, it is parsed as plain text but you loose the 
independence of the output format (latex, pdf, native gui, ...).

I don't understand why do you want to parse HTML? Writing a HTML parser 
is a difficult thing!

Cheers,
Lukas

-- 
Lukas Renggli
http://renggli.freezope.org




More information about the SmallWiki mailing list