Skip to content

Commit

Permalink
feat(vhdl): add a protocol specify a translatable layer
Browse files Browse the repository at this point in the history
  • Loading branch information
julianhoever committed Jul 4, 2022
1 parent 196812e commit 0fa966e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions elasticai/creator/vhdl/translator/abstract_repr/translatable.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from typing import Any, Iterator, Protocol

from elasticai.creator.vhdl.translator.abstract_repr.custom_template_mapping import (
CustomTemplateMapping,
)


class Translatable(Protocol):
def translate(
self, custom_template_mapping: CustomTemplateMapping, **kwargs: Any
) -> Iterator[tuple[str, list[str]]]:
...

0 comments on commit 0fa966e

Please sign in to comment.