代码拉取完成,页面将自动刷新
(*
<> must choose
[] can choose
{} can repeat 0 to infinite time(s)
| or
::= is defined as
*)
(*
id (_ | a~z | A~Z){(_ | a~z | A~Z | 0~9)};
number (0~9){0~9}[. (0~9){0~9}];
string "...";
*)
list ::= <[> {<calc> <,>} <]>;
hash ::= <{> {(<id> | <string>) <:> <calc>} <}>;
function ::= <func> <(> {<id> <,>} [<id> <...>]<)> <exprs>;
(*first(definition)={ var }*)
definition ::= <var> <id> <=> <calc>;
(*first(conditional)={ if }*)
conditional ::= <if> <(> <calc> <)> <exprs> [<else> <exprs>];
(*first(while)={ while }*)
while ::= <while> <(> <calc> <)> <exprs>;
(*first(for)={ for }*)
for ::= <for> <(> (<definition>|<calc>|<null>) <;> (<calc>|<null>) <;> (<calc>|<null>) <)> <exprs>;
(*first(calc)={ nil,id,-,!,number,string,func,[,{,( }*)
calc ::= <or_expr> [(<?> <or_expr> <:> <or_expr>)];
or_expr ::= <and_expr> [<or> <and_expr>];
and_expr ::= <cmp_expr> [<and> <cmp_expr>];
cmp_expr ::= <additive> [(<==> | <!=> | <<> | <>> | <<=> | <>=>) <additive>];
additive ::= <multive> [(<+> | <-> | <~>) <multive>];
multive ::= <scalar> [(<*> | </>) <scalar>];
scalar ::= ((<-> | <!>) <scalar>) | <call>;
call ::= (<id> | <nil> | <number> | <string> | <function> | <list> | <hash> | <(> <calc> <)>) {(<.> <id>) | (<[> <calc> <]>) | (<(> {<calc> <,>} <)>)} [(<=>|<+=>|<-=>|<*=>|<\=>|<~=>) <calc>];
exprs ::= <{> {<expr> <;>} <}>;
expr ::=
<calc>
| <definition>
| <conditional>
| <while>
| <for>
| <continue>
| <break>
| <return> [calc]
;
proc ::= {<expr> <;>};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。