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

do until は do while に? #8

Open
taisukef opened this issue Dec 23, 2024 · 3 comments
Open

do until は do while に? #8

taisukef opened this issue Dec 23, 2024 · 3 comments

Comments

@taisukef
Copy link
Member

前判定繰り返しとして do while がある
あと判定繰り返しに do until があるが、do while はない

DNCL

繰り返し,
  〈処理〉
を, 〈条件〉 になるまで実行する

DNCL2 には、後判定がなくなっている

あまり使わない後判定自体をなくしてしまうのも手?

@taisukef
Copy link
Member Author

繰り返しを抜ける break があると、どちらの判定も実装可能

@taisukef
Copy link
Member Author

taisukef commented Jan 3, 2025

ひとまず、 do-until、do-while 共に実装
04f6f21

@taisukef
Copy link
Member Author

taisukef commented Jan 6, 2025

派生言語 Wirth では、字句解析の都合上、do-untilのみ実装
https://github.com/code4fukui/Wirth

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

No branches or pull requests

1 participant