fix doctest
adds doctest for the pyparsing grammar