provide path for explicit cast operator in eval parser; abort trying c-style casts in non-trivial cases (the parse becomes ambiguous, and it is better for us to prefer the usual non-casting path

This commit is contained in:
Ryan Fleury
2025-05-08 11:04:11 -07:00
parent e0202c5c18
commit a95780f2be
3 changed files with 55 additions and 5 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ E_ExprKindTable:
{ Deref UnaryPrefix 2 "*" "" "" "" }
{ Address UnaryPrefix 2 "&" "" "" "" }
{ Cast Null 1 "(" ")" "" "" }
{ Cast Null 1 "cast(" ")" "" "" }
{ Sizeof UnaryPrefix 1 "sizeof " "" "" "" }
{ Typeof UnaryPrefix 1 "typeof " "" "" "" }
{ ByteSwap UnaryPrefix 1 "bswap " "" "" "" }