Add docstring

This commit is contained in:
Dave Halter
2018-06-15 17:57:55 +02:00
parent 24346a0d32
commit c43cb21a0e
2 changed files with 3 additions and 5 deletions

View File

@@ -16,11 +16,6 @@ fallback token code OP, but the parser needs the actual token code.
"""
try:
import cPickle as pickle
except:
import pickle
class Grammar(object):
"""Pgen parsing tables conversion class.

View File

@@ -204,6 +204,9 @@ def _simplify_dfas(dfas):
def _make_dfas(start, finish):
"""
This is basically doing what the powerset construction algorithm is doing.
"""
# To turn an NFA into a DFA, we define the states of the DFA
# to correspond to *sets* of states of the NFA. Then do some
# state reduction.