Support for conditonal expression (if-expression)

This commit is contained in:
Nenad Čaklović
2022-03-29 12:30:06 +02:00
parent f19b38d3be
commit 46affe279c
3 changed files with 96 additions and 13 deletions

View File

@@ -40,6 +40,11 @@ public:
return nullptr;
}
bool empty() const
{
return m_ptr == -1;
}
private:
std::vector<PycRef<ASTNode>> m_stack;
int m_ptr;