builtup4/bu4/indexing/extensions/xinull.py
2021-09-12 13:33:13 +03:00

16 lines
563 B
Python

# Copyright (c) PARRRATE T&V 2021. All rights reserved.
from bu4.encoding.codes import CODE_NULL
from bu4.indexing.constructs.indexed import Indexed
from bu4.indexing.constructs.inull import INull
from bu4.parsing.extensions.CodeExtension import CodeExtension
from bu4.transform.states.transformfinished import TransformFinished
from bu4.transform.states.transformstate import TransformState
__all__ = ('XINull',)
class XINull(CodeExtension[Indexed], code=CODE_NULL):
def apply(self) -> TransformState[Indexed]:
return TransformFinished(INull())