pike.git / refdoc / chapters / pike_bnf.xml

version» Context lines:

pike.git/refdoc/chapters/pike_bnf.xml:8:    function_definition ::= modifiers+ type identifier "(" arguments? ")" block    variables ::= modifiers+ type variable_names ";"    variable_names ::= variable_name ( "," variable_name )*    variable_name ::= identifier ( "=" expression2 )?    constant ::= modifiers+ "constant" constant_names ";"    constant_names ::= constant_name ( "," constant_name )*    constant_name ::= identifier "=" expression2    class_def ::= modifiers+ class ";"?   <!-- Is it arguments or arguments? in class? -->    class ::= "class" identifier? ( "(" arguments ")" )? "{" program "}" -  modifiers ::= ( "extern" | "final" | "inline" | "local" | "nomask" | "optional" | "private" | +  modifiers ::= ( "extern" | "final" | "inline" | "local" | "optional" | "private" |    "protected" | "public" | "static" | "variant" )    block ::= "{" statement* "}"    statement ::= expression ";" | cond | while | do_while | for | switch | return | block | foreach | ";"    cond ::= "if" statement ( "else" statement )?    while ::= "while" "(" expression ")" statement    do_while ::= "do" statement "while" "(" expression ")" ";"    for ::= "for" "(" expression? ";" expression? ";" expression? ")" statement    switch ::= "switch" "(" expression ")" block    case_block ::= "{" ( case | default | statement | break | continue )* "}"    case ::= "case" expression [ ".." expression ] ":"