1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Comptime updates, start of metaprogramming support

This commit is contained in:
Brian Fiete 2021-01-08 16:21:03 -08:00
parent be1c099f19
commit 3bbf2d8313
43 changed files with 1562 additions and 885 deletions

View file

@ -946,6 +946,14 @@ BfParser* BfAstNode::GetParser()
return sourceData->ToParser();
}
bool BfAstNode::IsEmitted()
{
auto parser = GetParser();
if (parser == NULL)
return false;
return parser->mIsEmitted;
}
bool BfAstNode::IsFromParser(BfParser* parser)
{
if (parser == NULL)