0.9.8 • Published 4 years ago

pegtree v0.9.8

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

pegtree

Build Status Downloads Version License

Python Versions PyPI version

PEG-Tree Parser Combinator for Python3 and TypeScript

Installation

Python3

pip3 install pegtree

TypeScript

npm install pegtree --save

Usage

Python3

from pegtree import Grammar

peg = Grammar('''

''')
parser = peg.generate()
tree = parser('1+2*3')
print(repr(tree))

TypeScript

import { Grammar } from 'pegtree'
const peg = new Grammar(`

`)
const parser = peg.generate()
const tree = parser('1+2*3')
console.log(tree)

Test

TypeScript

npm run test
0.9.8

4 years ago

0.9.7

4 years ago

0.9.6

4 years ago

0.9.5

4 years ago

0.9.4

4 years ago

0.9.3

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago