I'm thinking of writing a parser for EBNF (Extended Backus-Naur Form). The BNF is the format that one often finds in computer books to describe the syntax of a statement.
I'm thinking of writing a parser for EBNF (Extended Backus-Naur Form). The BNF is the format that one often finds in computer books to describe the syntax of a statement.
Any ideas? Is there perhaps someone that has created such a solution? Does anyone have suggestions how I should go about to do this?
Any ideas? Is there perhaps someone that has created such a solution? Does anyone have suggestions how I should go about to do this?
I would recommend using some functional language that has parser combinator library (Haskell/parsec, F#/FParsec) this is kind of application when they really shine
ReplyDeleteThanks all for the recommendations! I'll check them all out!
ReplyDeleteShameless plug but Browse and Doc It (davidghoyle.co.uk - Browse and Doc It – Dave's Development Blog) Already parses an extended BNF format in the IDE as I use it for documenting all the files I parse.
ReplyDelete