Post Reply 
order of logical operations in CAS
10-14-2022, 06:18 AM
Post: #2
RE: order of logical operations in CAS
Indeed, and and or have the same precedence in CAS because they are parsed with the same parser token in input_parser.yy (%left T_AND_OP), cf. input_lexer.ll
Code:

"&&"                    index_status(yyextra)=0; (*yylval)=gen(at_and,2); return T_AND_OP;
...
"||"                    index_status(yyextra)=0; (*yylval)=gen(at_ou,2); return T_AND_OP;
The same applies for xor and &
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: order of logical operations in CAS - parisse - 10-14-2022 06:18 AM



User(s) browsing this thread: 1 Guest(s)