yapocis.rpc.parser

Module Contents

Classes

InterfaceCL

Manages the kernel definitions, particularly the parameter specifications.

Functions

INTERFACECL_BNF() → pyparsing.OneOrMore

pyparser grammar for the yapocis interface specification. Inspired by an IDL parser by Paul McGuire, shipped as a demo with pyparser.

expected(token: str, tokens: yapocis.utils.typing.List[str])

fix_param(param: yapocis.utils.typing.List[Any]) → yapocis.utils.typing.List[Any]

Deals with variants of parameter specifications, returns a uniform array of information.

get_interface(s: str) → yapocis.rpc.parser.InterfaceCL

Builds an InterfaceCL for the source interface definition.

yapocis.rpc.parser.bnf[source]
yapocis.rpc.parser.INTERFACECL_BNF()pyparsing.OneOrMore[source]

pyparser grammar for the yapocis interface specification. Inspired by an IDL parser by Paul McGuire, shipped as a demo with pyparser.

class yapocis.rpc.parser.InterfaceCL(interface_name: str, kernel_defs: yapocis.utils.typing.List[Any], kernel_aliases: yapocis.utils.typing.Dict[str, str])[source]

Manages the kernel definitions, particularly the parameter specifications.

kernels(self)[source]

Returns a list of kernel names

kernel_params(self, kernel)[source]

Returns the parameter specifications for a kernel

kernel_alias(self, kernel_name)[source]
yapocis.rpc.parser.dtypemap[source]
yapocis.rpc.parser.expected(token: str, tokens: yapocis.utils.typing.List[str])[source]
yapocis.rpc.parser.fix_param(param: yapocis.utils.typing.List[Any])yapocis.utils.typing.List[Any][source]

Deals with variants of parameter specifications, returns a uniform array of information.

yapocis.rpc.parser.get_interface(s: str)yapocis.rpc.parser.InterfaceCL[source]

Builds an InterfaceCL for the source interface definition.