def getTokensEndLoc():
import inspect<EOL>fstack = inspect.stack()<EOL>try:<EOL><INDENT>for f in fstack[<NUM_LIT:2>:]:<EOL><INDENT>if f[<NUM_LIT:3>] == "<STR_LIT>":<EOL><INDENT>endloc = f[<NUM_LIT:0>].f_locals["<STR_LIT>"]<EOL>return endloc<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise ParseFatalException("<STR_LIT>")<EOL><DEDENT><DEDENT>finally:<EOL><INDENT>del fstack<EOL><DEDENT>
Method to be called from within a parse action to determine the end
       location of the parsed tokens.