Python

i need a simple parsing lib, and PEGs are cool

fork
loading
Files
  • main.py
  • combinators.py
  • parser.py
  • state.py
  • token.py
main.py
1
2
3
4
5
6
7
8
9
10
'''
term = NUM / OPAREN sum CPAREN
prod = term TIMES prod / term
sum = prod PLUS sum / prod
'''

from combinators import Term, Ref
from state import ParserState

import parser