Skip to content

Commit

Permalink
core: Remove ParsingContext (#3524)
Browse files Browse the repository at this point in the history
Dead code
  • Loading branch information
alexarice authored Nov 27, 2024
1 parent d1b3b09 commit b7e13f2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions xdsl/irdl/declarative_assembly_format_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import re
from collections.abc import Callable, Sequence, Set
from dataclasses import dataclass, field
from enum import Enum, auto
from itertools import pairwise
from typing import cast

Expand Down Expand Up @@ -115,13 +114,6 @@ def lex(self) -> Token:
bare_identifier_suffix_regex = re.compile(r"[a-zA-Z0-9_$.\-]*")


class ParsingContext(Enum):
"""Indicates if the parser is nested in a particular directive."""

TopLevel = auto()
TypeDirective = auto()


@dataclass(init=False)
class FormatParser(BaseParser):
"""
Expand Down

0 comments on commit b7e13f2

Please sign in to comment.