def parse_value(val):
mobj = re.match('<STR_LIT>',  val)<EOL>if mobj:<EOL><INDENT>return int(mobj.group(<NUM_LIT:1>))<EOL><DEDENT>mobj = re.match('<STR_LIT>',  val)<EOL>if mobj:<EOL><INDENT>return float(mobj.group(<NUM_LIT:1>))<EOL><DEDENT>re.match('<STR_LIT>',  val)<EOL>if mobj:<EOL><INDENT>return int(mobj.group(<NUM_LIT:1>)) * memMultiplier[mobj.group(<NUM_LIT:2>)]<EOL><DEDENT>mobj = re.match('<STR_LIT>',  val)<EOL>if mobj:<EOL><INDENT>return float(mobj.group(<NUM_LIT:1>)) / <NUM_LIT:100> <EOL><DEDENT>return val<EOL>
Parse input string and return int, float or str depending on format.

    @param val: Input string.
    @return:    Value of type int, float or str.