FV3 Bundle
c2f.py File Reference

Go to the source code of this file.

Classes

class  c2f.ParsingError
 

Namespaces

 c2f
 

Functions

def c2f.multiline (line, maxlength)
 
def c2f.iso_c_binding (declaration, returned)
 
def c2f.C_F_binding (c_line)
 
def c2f.parse_file (c_file)
 

Variables

 c2f.parser = ArgumentParser()
 
 c2f.type
 
 c2f.str
 
 c2f.nargs
 
 c2f.help
 
 c2f.parsed = parser.parse_args()
 
 c2f.files = parsed.files
 
 c2f.output = parsed.output
 
 c2f.module = parsed.module
 
list c2f.used_types = []
 
string c2f.TAB = " "
 
dictionary c2f.TYPES_DICT
 
dictionary c2f.TYPES2_DICT
 
 c2f.REGEX_RETURNED_TYPE = re.compile( "^ *([_0-9a-zA-Z ]+ *\**&?)" )
 
 c2f.REGEX_FUNCTION_NAME = re.compile( "([0-9a-zA-Z_]+) *\(" )
 
 c2f.REGEX_ARGUMENTS = re.compile( "\(([&0-9a-zA-Z_\s\,\*\[\]]*)\).*;$" )
 
 c2f.REGEX_ARGS = re.compile( " *([&0-9a-zA-Z_\s\*\[\]]+),?" )
 
 c2f.REGEX_VAR_TYPE = re.compile( " *([_0-9a-zA-Z]+)[ |\*]" )
 
 c2f.REGEX_TYPE = re.compile( "^ *((const )?\w+)[ \*]?" )
 
 c2f.REGEX_VAR_NAME = re.compile( "[ |\*&]([_0-9a-zA-Z]+)(?:\[\])?$" )