User loginNavigation |
Parsing expression languagesI'm working on a system (a prover for modal logic) in Haskell that needs to construct parsers for expression languages with operators of arbitrary arity and fixity. At the moment, I'm using the buildExpressionParser function from Parsec to do the heavy lifting, but it is restricted to pre-/post-fix unary and infix binary operators. Does anyone have any suggestions as to the "correct" way to implement parsers for expression languages in Haskell? An instance of Read? Text.ParserCombinartors.ReadPrec? By Thomas Sutton at 2005-08-01 03:50 | LtU Forum | previous forum topic | next forum topic | other blogs | 2882 reads
|
Browse archivesActive forum topics |