loki.frontend.omni module

HAVE_OMNI = False

Indicate whether OMNI frontend is available.

parse_omni_source(source, filepath=None, xmods=None)

Deploy the OMNI compiler’s frontend (F_Front) to AST for a source string.

parse_omni_file(filename, xmods=None)

Deploy the OMNI compiler’s frontend (F_Front) to generate the OMNI AST.

Note that the intermediate XML files can be dumped to file via by setting the environment variable LOKI_OMNI_DUMP_XML.

parse_omni_ast(ast, definitions=None, type_map=None, symbol_map=None, raw_source=None, scope=None)

Generate an internal IR from the raw OMNI parser AST.