This repository has been archived by the owner on Dec 11, 2024. It is now read-only.
parser-1测试隐式类型转换时出现相同的"kind"、"name"、"value" 键值,但是测试不通过 #84
Unanswered
xzy20020920
asked this question in
Q&A
Replies: 1 comment
-
我肉眼感觉没啥问题,你可以修改 compiler/sysu-compiler 中的代码,多打点 log 看看本地评测发现的错误在哪 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
测试代码:
我的输出:
标准输出:
报错说明:
fail: key not match
kind
current node:
{'id': '0x222ce00', 'kind': 'ImplicitCastExpr', 'range': {'begin': {'offset': 212, 'col': 18, 'tokLen': 7}, 'end': {'offset': 212, 'col': 18, 'tokLen': 7}}, 'type': {'qualType': 'float'}, 'valueCategory': 'rvalue', 'castKind': 'FloatingCast'}
我对比发现kind都可以找到,不明白错误在哪里。
Beta Was this translation helpful? Give feedback.
All reactions