コード例 #1
0
ファイル: __init__.py プロジェクト: yappari/pypbn
def test_parser_simple():
    prs = parser()
    print prs.parse("""
        [A "B"]
% what?
        [B "C"]

        [C "D"]""")
コード例 #2
0
ファイル: __init__.py プロジェクト: yappari/pypbn
def test_parser_sample():
    for example in examples():
        prs = parser()
        with open(example) as exf:
            print prs.parse(exf.read())