Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move python language support filters in pyuavcan into nunavut. #67

Open
thirtytwobits opened this issue Sep 10, 2019 · 0 comments

Comments

@thirtytwobits
Copy link
Contributor

commented Sep 10, 2019

From pyuavcan/dsdl._compiler.py pull in the following filters to allow reuse by all python code generators:

def filter_full_reference_name(t: pydsdl.CompositeType) -> str:
def filter_short_reference_name(t: pydsdl.CompositeType) -> str:
def filter_alignment_prefix(offset: pydsdl.BitLengthSet) -> str:
def filter_imports(t: pydsdl.CompositeType) -> typing.List[str]:
def filter_longest_id_length(attributes: typing.List[pydsdl.Attribute]) -> int:
def filter_bit_length_set(values: typing.Optional[typing.Union[typing.Iterable[int], int]]) -> pydsdl.BitLengthSet:

@thirtytwobits thirtytwobits added this to the 1.1.3 milestone Sep 10, 2019

@thirtytwobits thirtytwobits added this to accepted in accepted work via automation Sep 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.