flexyparser - or a html lexer
| From: | Alan Knowles | Date: | Tue, 09 Nov 2004 15:26:44 +0000 |
| Subject: | flexyparser - or a html lexer | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-1597@lists.php.net to get a copy of this message | ||
I was pondering putting the little lex based HTML parser into PECL, It's interesting from a couple of points
- worlds simplest API (2 functions, 1 callback...)
- illustrates how to integrate a lex based output as a generic parser, so you could use the code as a base for a parser for any other text format .
- it has 0 dependancies :) - unlike some of my other projects...
The only question I had remaining is what to call the extension - currently I used flexyparser but, it's pretty meaningless.. (although the original idea was to re-write the template engine parser using this..)
source
http://devel.akbkhome.com/svn/index.php/akpear/flexyparser/
examples
http://devel.akbkhome.com/svn/index.php/akpear/flexyparser/
the *.out.c are the output examples.
Thoughts......
Regards
Alan