Search code examples
context-free-grammarparser-generatorbnf

Good BNF grammar tutorial / introduction for a beginner?


What's your tip for an introduction to BNF grammar (and how to use them in practice)?

Something concise with many examples would be great. Have been googling but only found enormously long artcles with unclear examples so far :/

(In my particular case, I'm trying to parse the Galaxy Toolconfig syntax, which includes if/else statements etc.)


Solution

  • i've always found the abnf rfc very good when regarding these issues: http://www.ietf.org/rfc/rfc2234.txt