pyccel.plugins.LineAnnot.plugin module#
Hook implementations for the LineAnnot pyccel plugin.
- pyccel.plugins.LineAnnot.plugin.add_cli_options(parser, cli_tool)[source]View on GitHub#
Add LineAnnot-specific CLI options to parser.
The LineAnnot plugin requires no extra options beyond the
--line_annotationflag added automatically by plugin_tools.get_plugin_cli_options, so this hook is a no-op.- Parameters:
parser (argparse.ArgumentParser) – The argument parser to which any options should be added.
cli_tool (str) – The name of the CLI tool being invoked.
- pyccel.plugins.LineAnnot.plugin.get_description()[source]View on GitHub#
Return a one-line description of the LineAnnot plugin for the CLI help text.
Return a one-line description of the LineAnnot plugin for the CLI help text.
- Returns:
Human-readable description of what the plugin does.
- Return type:
str
- pyccel.plugins.LineAnnot.plugin.get_updated_semantic_methods()[source]View on GitHub#
Return the semantic parser methods provided or overridden by the LineAnnot plugin.
Return the semantic parser methods provided or overridden by the LineAnnot plugin.
- Returns:
A tuple containing the method overridden by this plugin.
- Return type:
tuple[function]
- pyccel.plugins.LineAnnot.plugin.read_cli_arguments(kwargs: dict)[source]View on GitHub#
Read any arguments from the kwargs dictionary.
The LineAnnot plugin has no specific arguments to read, so this hook is a no-op.
- Parameters:
kwargs (dict) – The keyword arguments passed to the pipeline.