def make_interval(long_name, short_name):
return Group(<EOL>Regex("<STR_LIT>")<EOL>+ (<EOL>upkey(long_name + "<STR_LIT:s>")<EOL>| Regex(long_name + "<STR_LIT:s>").setParseAction(upcaseTokens)<EOL>| upkey(long_name)<EOL>| Regex(long_name).setParseAction(upcaseTokens)<EOL>| upkey(short_name)<EOL>| Regex(short_name).setParseAction(upcaseTokens)<EOL>)<EOL>).setResultsName(long_name)<EOL>
Create an interval segment