Skip to content

Commit 4b5eb62

Browse files
committed
Removes State protocol
1 parent 189e187 commit 4b5eb62

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/syntactes/_state.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
1-
from typing import Iterable, Protocol
1+
from typing import Iterable
22

33
from syntactes._item import LR0Item
44

55

6-
class State(Protocol):
7-
"""
8-
State of parser automaton. A state is a set of items.
9-
"""
10-
11-
items: set
12-
13-
def __repr__(self) -> str: ...
14-
def __str__(self) -> str: ...
15-
def __hash__(self) -> int: ...
16-
def __eq__(self) -> bool: ...
17-
18-
196
class LR0State:
207
"""
218
State of LR0 parser. A LR0 state is a set of LR0 items.

0 commit comments

Comments
 (0)