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

ㅎ의 범위 오류가 있어도 종료를 보장하도록 표준 개정 #31

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/specs.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ The ㅇ group:
* ㅇ is the null instruction. The momentum is immediately updated by the vowel and the cursor moves in that direction without performing any other action.
* ㅎ is the terminate instruction. The cursor stops at the character and the program terminates.
* If the current storage is non-empty, the program pops from the storage and returns the result. If the current storage is empty, the program returns 0.
* Even if the popped value is out of range of program return of the running platform, the program always terminates.

Hence "아희" itself is a valid Aheui program, although it is basically a null program.

Expand Down
1 change: 1 addition & 0 deletions docs/specs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
* ㅇ은 **없음** 명령으로 아무 일도 하지 않습니다.
* ㅎ은 **끝냄** 명령으로 커서의 실행을 끝냅니다. 이 때 현재 선택된 저장 공간에 값이 하나 이상 남아 있으면 ㅁ 명령으로 뽑아낼 수 있는 값을 뽑아내 운영체제에 돌려 줍니다. 저장 공간이 비어 있으면 0을 돌려줍니다.
* 저장 공간이 비어 있더라도 커서의 실행은 끝냅니다. 반대 방향으로 이동하지 않습니다.
* 저장된 값이 운영체제에 돌려줄 수 있는 값의 범위를 벗어나더라도 실행은 반드시 끝냅니다.

ㄷ 묶음 - 셈. 받침은 모두 무시합니다.

Expand Down