builtup4/bu4/parsing/constructs/pnull.py

15 lines
489 B
Python

# Copyright (c) PARRRATE T&V 2021. All rights reserved.
from bu4.linking.constructs.linked import Linked
from bu4.linking.constructs.lnull import LNull
from bu4.parsing.constructs.parsed import Parsed
from bu4.transform.states.transformfinished import TransformFinished
from bu4.transform.states.transformstate import TransformState
__all__ = ('PNull',)
class PNull(Parsed):
def link(self, promise: set[bytes]) -> TransformState[Linked]:
return TransformFinished(LNull())