Page 2 of 2
Posted: Sat Aug 19, 2006 7:05 pm
by mator
Not an option, would require some massive restructuring. BBCodes are the only way to go.
Posted: Sat Aug 19, 2006 7:15 pm
by Ambush Commander
The reason you want it to be nonrecursive is because of performance?
Posted: Sat Aug 19, 2006 9:49 pm
by mator
What I mean by nonrecurisve is that I don't call another instance of the parser to handle the attributes. Some parts of this system would have to be recursive in order to make things more managable.
Posted: Sat Aug 19, 2006 9:51 pm
by Ambush Commander
Well, you could split parsing into BLOCK and INLINE, and call the INLINE parser.
Posted: Sat Aug 19, 2006 9:59 pm
by mator
pardon?
Posted: Sat Aug 19, 2006 10:09 pm
by Ambush Commander
Well, there's block level tags like quote and inline level tags like bold. Split up processing for them, then you call just the inline processing when you have an attribute.