Parses an IfStatement
$(GRAMMAR $(RULEDEF ifStatement): $(LITERAL 'if') $(LITERAL '$(LPAREN)') $(RULE ifCondition) $(LITERAL '$(RPAREN)') $(RULE declarationOrStatement) ($(LITERAL 'else') $(RULE declarationOrStatement))? $(RULEDEF ifCondition): $(LITERAL 'auto') $(LITERAL Identifier) $(LITERAL '=') $(RULE expression) | $(RULE type) $(LITERAL Identifier) $(LITERAL '=') $(RULE expression) | $(RULE expression) ;)
See Implementation
Parses an IfStatement
$(GRAMMAR $(RULEDEF ifStatement): $(LITERAL 'if') $(LITERAL '$(LPAREN)') $(RULE ifCondition) $(LITERAL '$(RPAREN)') $(RULE declarationOrStatement) ($(LITERAL 'else') $(RULE declarationOrStatement))? $(RULEDEF ifCondition): $(LITERAL 'auto') $(LITERAL Identifier) $(LITERAL '=') $(RULE expression) | $(RULE type) $(LITERAL Identifier) $(LITERAL '=') $(RULE expression) | $(RULE expression) ;)