Daniel, In function parse_expressionable_single, why we need NODE_FLAG_INSIDE_EX...

George Chow Answered 2 answers
Question by George Chow 2 years ago

Question

Daniel, In function parse_expressionable_single, why we need NODE_FLAG_INSIDE_EXPRESSION flag? Flags start with NODE_FLAG_ are for nodes, not for history, I can't understand.

int parse_expressionable_single(struct history *history)
{
struct token* token = token_peek_next();
if(!token)
return -1;

history->flags |= NODE_FLAG_INSIDE_EXPRESSION; //Why we need this?

Answers

Answered by Daniel McCarthy

Instructor

Hi,
This was a minor typo corrected later in the course dont worry
Thanks

Follow-up by George Chow

Question author

Thank you, Daniel.