Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSTにsizeofのNodeを作る #36

Merged
merged 2 commits into from
Jan 22, 2024
Merged

Conversation

kntkymt
Copy link
Owner

@kntkymt kntkymt commented Jan 22, 2024

概要

  • sizeofをPrefixOperatorNodeとして表現
    • sizeofをCSTの段階でIntegerLiteralに置き換えていたが、clangではsizeofのASTが生成されていたため

実装

  • 配列のsizeofなどは未実装で8を固定値として生成
    • 未だCSTのExprから、その型を判別する実装をしていないため

@kntkymt kntkymt self-assigned this Jan 22, 2024
@kntkymt kntkymt merged commit a471da8 into main Jan 22, 2024
1 check passed
@kntkymt kntkymt deleted the feature/prefix-operator-node-sizeof branch January 22, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant