expr = Word(printables, excludeChars='{}=;') | quotedString
leaf = Group(name + EQ + expr + SEMI)
group = Group(LBRACE + ZeroOrMore(leaf) + RBRACE) | leaf
tree = OneOrMore(group)
Преобразование грамматики BNF в pyparsing