Functions/methods having multiple optional arguments are not very convenient
to use in C++ (to put it mildly). Shuffle parser ctor arguments so not so
frequently used argument is the last one.
return token;
}
-parser::parser(const symtab& syms_, const prototype_table& funcs_,
- const bool strict_) : strict(strict_), funcs(funcs_),
- syms(syms_)
+parser::parser(const symtab& syms_, const bool strict_,
+ const prototype_table& funcs_) : strict(strict_),
+ funcs(funcs_), syms(syms_)
{
scanner = new lexer();
}
* symbol is encountered.
*/
parser(const symtab& syms_ = symtab(),
- const prototype_table& funcs_ = get_default_reader(),
- const bool strict_ = false);
+ const bool strict_ = false,
+ const prototype_table& funcs_ = get_default_reader());
~parser();
/// parse the stream @a input