Skip to main content

语言

EBNF

  • ISO 14977
    • Information technology -- Syntactic metalanguage -- Extended BNF
Production  = name "=" [ Expression ] ";" ;
Expression = Alternative { "|" Alternative } ;
Alternative = Term { Term } ;
Term = name | TOKEN | Group | Option | Repetition ;
Group = "(" Expression ")" ;
Option = "[" Expression "]" ;
Repetition = "{" Expression "}" ;