Hi, as known, we can use Token::isBinaryOp to check if a token is a binary op, when it is true, Token::isOp return false sometimes.
#include <stdio.h> void main() { int x = (100, 200); printf("x is %d\n", x); }
When checking 'x = (100, 200)', the comma operator will get a false from Token::isOp.
Log in to post a comment.
Hi, as known, we can use Token::isBinaryOp to check if a token is a binary op, when it is true, Token::isOp return false sometimes.
When checking 'x = (100, 200)', the comma operator will get a false from Token::isOp.