FS#4826 - RFC: New WPS Parser
Opened by Dan Everton (safetydan) - Monday, 13 March 2006, 20:54 GMT
Last edited by Matthias Mohr (aka Massa) (mmohr) - Tuesday, 22 August 2006, 21:50 GMT
Attached is the start of a new WPS parser. It's not totally functional yet and has issues. It's currently written to be compiled standalone. If you do
gcc -Wall -g -o gwps-tokenizer gwps-tokenizer.c && ./gwps-tokenizer
It should print out a "parse tree" of sorts.
Essentially I'm posting this here to get some feedback on whether the approach I've chosen is the right way to go. My current goals are
1. Make the WPS parsing code easier to understand and extend.
2. Parse the WPS only once and use the tokenised stream for display.
Some ideas have been taken from the WPS tokenising patch here