In article <MDBBJLBFBICIIEIHFBMECEDCDFAA.hallane@earthlink.net>, "Hal Lane" <hallane@earthlink.net> writes:
When I took a quick look at the formula parser some time ago, I was pretty intimidated. The parser looked like an ad hoc design approach, rather than an automatically generated parser, like lex and yacc.
Yes, its pretty inscrutable. My long term approach is actually to replace the parser entirely, but I wouldn't mind fixing the bug that causes some formulas to render incorrectly in the near term.
The language that needs to be parsed is a essentially a 'tiny c'.
Not really. C syntax is nothing at all like fractint's formula syntax.
'tiny c' in lex and yacc that might be usable.
I'm not using lex/yacc. -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://www.xmission.com/~legalize/book/download/index.html> Legalize Adulthood! <http://blogs.xmission.com/legalize/>