Camen Design Forum

Kroc, why did you bestow upon me this nightmare?

JJ

I've been trying to get better at writing parsers lately, so I think I'm gonna try to write a scanner and a recursive descent parser for the complicated stuff and leave whatevers left to plain regexes (for speed). It's the easy way out, recursive descent won't be the absolute fastest, but its just what I know (the easiest to write that I know of). I don't see much of a way this is possible to avoid without the sheer power of a full pcre implementation.

Append

(Leave this as-is, it’s a trap!)

Only the original author or a moderator can append to this post.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn