<if_stmt> -> if ( <expr> ) stmt [ else <stmt> ]
The second extension is the use of braces in an RHS to indicate that the enclosed part can be repeated indefinitely or left out altogether. For example:
<ident_list> -> ident {, <ident> }
The third extension deals with multiple choice options. For example:
<term> -> <term> ( *|/|% ) <factor>
No comments:
Post a Comment