FV3 Bundle
|
Classes | |
class | ParsingError |
Functions | |
def | multiline (line, maxlength) |
def | iso_c_binding (declaration, returned) |
def | C_F_binding (c_line) |
def | parse_file (c_file) |
Variables | |
parser = ArgumentParser() | |
type | |
str | |
nargs | |
help | |
parsed = parser.parse_args() | |
files = parsed.files | |
output = parsed.output | |
module = parsed.module | |
list | used_types = [] |
string | TAB = " " |
dictionary | TYPES_DICT |
dictionary | TYPES2_DICT |
REGEX_RETURNED_TYPE = re.compile( "^ *([_0-9a-zA-Z ]+ *\**&?)" ) | |
REGEX_FUNCTION_NAME = re.compile( "([0-9a-zA-Z_]+) *\(" ) | |
REGEX_ARGUMENTS = re.compile( "\(([&0-9a-zA-Z_\s\,\*\[\]]*)\).*;$" ) | |
REGEX_ARGS = re.compile( " *([&0-9a-zA-Z_\s\*\[\]]+),?" ) | |
REGEX_VAR_TYPE = re.compile( " *([_0-9a-zA-Z]+)[ |\*]" ) | |
REGEX_TYPE = re.compile( "^ *((const )?\w+)[ \*]?" ) | |
REGEX_VAR_NAME = re.compile( "[ |\*&]([_0-9a-zA-Z]+)(?:\[\])?$" ) | |
def c2f.C_F_binding | ( | c_line | ) |
def c2f.iso_c_binding | ( | declaration, | |
returned | |||
) |
def c2f.multiline | ( | line, | |
maxlength | |||
) |
def c2f.parse_file | ( | c_file | ) |
c2f.REGEX_ARGUMENTS = re.compile( "\(([&0-9a-zA-Z_\s\,\*\[\]]*)\).*;$" ) |
c2f.REGEX_RETURNED_TYPE = re.compile( "^ *([_0-9a-zA-Z ]+ *\**&?)" ) |
c2f.REGEX_VAR_NAME = re.compile( "[ |\*&]([_0-9a-zA-Z]+)(?:\[\])?$" ) |
dictionary c2f.TYPES2_DICT |
dictionary c2f.TYPES_DICT |