When parsing a function call, invoke parse without specialization since the "=" operator needs a ParseTree
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
fb1ec6813f
commit
1f819bc136
|
@ -104,7 +104,7 @@ namespace Parser {
|
|||
const component_ptr& previous = parseTree.at(parseTree.size() - 1);
|
||||
if (current.toktype == LPAR) {
|
||||
try {
|
||||
dynamic_cast<Call&>(*previous).ParseTree::operator=(parse<Call>(subTokens));
|
||||
dynamic_cast<Call&>(*previous).ParseTree::operator=(parse(subTokens));
|
||||
} catch (const bad_cast&) {
|
||||
parsingError(current, "Unexpected parenthesis");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue