Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
Oops.
  • Loading branch information
ltratt committed Sep 1, 2013
1 parent 52bc61a commit 1454ef2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vm/Modules/Con_C_Earley_Parser.py
Expand Up @@ -79,7 +79,7 @@ def import_(vm):

class Parser:
__slots__ = ("grm", "toks", "items")
_immutable_slots = ("grm", "toks", "items")
_immutable_fields_ = ("grm", "toks", "items")

def __init__(self, grm, toks):
self.grm = grm
Expand All @@ -89,7 +89,7 @@ def __init__(self, grm, toks):

class Alt:
__slots__ = ("parent_rule", "precedence", "syms")
_immutable_slots_ = ("parent_rule", "precedence", "syms")
_immutable_fields_ = ("parent_rule", "precedence", "syms")

def __init__(self, parent_rule, precedence, syms):
self.parent_rule = parent_rule
Expand All @@ -103,7 +103,7 @@ class Item:
# d is the position of the Earley "dot" within the rule we've currently reached
# j is the position in the token input we've currently reached
# w is the SPPF tree being built
_immutable_slots_ = ("s", "d", "j", "w")
_immutable_fields_ = ("s", "d", "j", "w")

def __init__(self, s, d, j, w):
self.s = s
Expand All @@ -128,7 +128,7 @@ class Tree:

class Tree_Non_Term(Tree):
__slots__ = ("s", "complete", "j", "i", "precedences", "families", "flattened")
_immutable_slots = ("t", "complete", "j", "i")
_immutable_fields_ = ("t", "complete", "j", "i")

def __init__(self, s, complete, j, i):
self.s = s
Expand Down Expand Up @@ -162,7 +162,7 @@ def _seen(self, seen, n):

class Tree_Term(Tree):
__slots__ = ("t", "j", "i")
_immutable_slots = ("t", "j", "i")
_immutable_fields_ = ("t", "j", "i")

def __init__(self, t, j, i):
self.t = t
Expand Down

0 comments on commit 1454ef2

Please sign in to comment.