handle junk in argument lists (Fixes #2206)

This commit is contained in:
Marc Zinnschlag 2014-12-17 15:03:05 +01:00
parent 5cb94da9c5
commit b951251572
8 changed files with 106 additions and 6 deletions

View file

@ -96,11 +96,12 @@ namespace Compiler
/// \return Type ('l': integer, 'f': float)
int parseArguments (const std::string& arguments, Scanner& scanner,
std::vector<Interpreter::Type_Code>& code);
std::vector<Interpreter::Type_Code>& code, int ignoreKeyword = -1);
///< Parse sequence of arguments specified by \a arguments.
/// \param arguments Uses ScriptArgs typedef
/// \see Compiler::ScriptArgs
/// \param invert Store arguments in reverted order.
/// \param ignoreKeyword A keyword that is seen as junk
/// \return number of optional arguments
};
}