即使您拥有挂载源/目标的所有权限,它也需要 root,为什么?
我想解析 - 跳过Forth-style如果来自输入,Forth-style意味着每个如果开始if和结束then,假设所有输入都是正确的不匹配处理不是必需的.
问题是每个部分都if可以递归地包含任意数量的其他部分if.
这是我测试用例的最佳解决方案:
Red []
skip-nested-ifs: [skip to ['if | 'then] skip-nested-ifs-helper]
skip-nested-ifs-helper: ['then | skip-nested-ifs skip-nested-ifs-helper ]
rules: skip-nested-ifs
test-cases: [
[if a then]
[if a else b then]
[if a if b then then]
[if a if b then 5 then]
[if a if b then 5 if c then then]
[if a else if b then then]
[if a else if b then 5 then]
[if a …Run Code Online (Sandbox Code Playgroud)