EBNF is used to describe syntax. A loop being infinite or otherwise wouldn't normally fall within what it would describe. As such, you'd be looking at the EBNF for an indefinite loop, which looks something like:
Normally the cond will be something that pushes a 0 or 1 on the stack to determine whether to continue the loop (0 means continue the loop, 1 means exit). As such, if you just insert a 0 directly, the loop will execute forever:
发布评论
评论(2)
EBNF 用于描述语法。无限循环或其他循环通常不属于它所描述的范围。因此,您将在 EBNF 中查找不定循环,它看起来类似于:
通常,
cond
会将 0 或 1 压入堆栈以确定是否继续循环(0
表示继续循环,1
表示退出)。因此,如果直接插入0
,循环将永远执行:EBNF is used to describe syntax. A loop being infinite or otherwise wouldn't normally fall within what it would describe. As such, you'd be looking at the EBNF for an indefinite loop, which looks something like:
Normally the
cond
will be something that pushes a 0 or 1 on the stack to determine whether to continue the loop (0
means continue the loop,1
means exit). As such, if you just insert a0
directly, the loop will execute forever:您还可以使用:
AGAIN
一词用于执行返回到BEGIN
的无条件分支。例如:You can also use:
The
AGAIN
word is used to do an unconditional branch back to theBEGIN
. For example: