You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i was trying to see if i could evaluate an expression to fold constants ie.
given count = true && true ? 1 : 0
get to count = 1
overriding dict transformer shows some issues on precedence in the grammar. ie use of conditional shows that its being evaluated early before binary terms, ie. per extant grammar precedence is true && (true ? 1: 0)
instead of (true && true) ? 1 : 0
printing the parse tree exemplifies, ie parsing this source test {count = true && true ? 1 : 0} with the grammar results in this parse tree
Activity