Alexander Hirsch wrote: >> Does anyone have a spare FGD parser (C++ code)? What i'm trying to do is >> very time consuming and extending the time with making an FGD parser is a >> suicidal. It would be perfect if I had Valve's parser. >> What a coincidence. I literally made one yesterday for a project. It's a formal grammar for ANTLR, so it generates source code file in C/Java/Python/whatever.
You can see some sample stuff here: http://www.interlopers.net/forum/viewtopic.php?f=25&t=31394 It emits a abstract syntax tree (which would depend on your ANTLR runtime) so you'd still need to write some C/C++ code to actually crawl through the tree. Currently I'm working on making it not-choke on certain idiosyncrasies that Valve's code doesn't seem to mind, like a multiline string that ends with a dangling plus sign. --Darien A. Hager _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

