Writing a parser

Associate
Joined
30 Jun 2003
Posts
2,237
Location
Sussex
I'm writing a project in PHP which has to parse two types of files, a customish one and .po files. I've written a really hackish parser in php for the first type just for testing purposes but I have two questions:

* What's the best way/language/method of writing a solid parser? My only experience here is lex/yacc which doesn't seem ideal for a php project
* Is there a decent open-source (preferably not in C) parser already existing for .po files?

Edit: forgot to say the parsing is done in batch seperate to the upload so as long as it can run on a webserver it's acceptable.
 
Back
Top Bottom