diff --git a/xdsl/irdl/declarative_assembly_format_parser.py b/xdsl/irdl/declarative_assembly_format_parser.py index b798bc0812..0d692445bb 100644 --- a/xdsl/irdl/declarative_assembly_format_parser.py +++ b/xdsl/irdl/declarative_assembly_format_parser.py @@ -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 @@ -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): """