Syntax Parser

The parser is a highly efficient and expandable regex syntax preprocessor used to convert wiki like syntax into xhtml output. The parser uses full a Object Orientated Design so bug fixes and improvements are simple and easy to implement.

Originally developed in 2008 as a high speed bbcode processor for the Ameoto DEV site it has since been updated and tweaked for more functionality and efficiency. The parser currently supports all basic bbcode input and wiki syntax based on the dokuwiki spec and also internal functions for WhiteCrane, although support for tables is still not possible the parser is designed to be more of an assistant to html rather then a replacement and therefore tables and other content can be created with unmodified html markup without any interfearence from the parser.

Engine Specs

The parser is built under a single class and a execution method call "parse". When called the injected text is sent though a number of functions each with its own job(such as a regular expression). Optionally the parse method can be called an unlimited(memory limitations apply) number of times in the same instance without conflict.

Several core improvements are in development at this time to further extend the dynamic process of parsing.

Fastest recorded processing speed: 0.000489950180054 seconds (500kb Direct)

Benchmarks:

Console Benchmark: Parser processed 1,947,000bytes of data with 1,000 cycles in 3.3235731124878seconds allocating 3,511,432bytes with peek of 3,540,896bytes.

WhiteCrane:

fastcgi: Page processed in 0.000494003295898 seconds.

Credits

Copyright 2009 Ameoto Systems. All Rights Resurved.
Coded by TheTooth, thetooth@ameoto.com

+
links