bnf.ok

来自「一个Pascal语言分析器」· OK 代码 · 共 19 行

OK
19
字号
   EBNF = { Production } .

   Production = nonterminal "=" Expression "." .

   Expression = Term { "|" Term } .

   Term = Factor { Factor } .

   Factor = nonterminal
            | terminal
            | "[" Expression "]"
            | "(" Expression ")"
            | "{" Expression "}" .

    nonterminal = letter {letter | lowline | digit} .

    terminal =  "'" noquote1 {noquote1} "'" | '"' noquote2 {noquote2} '"' .

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?