Function moore_vhdl_syntax::parser::rules::parse_if_stmt [−][src]
pub fn parse_if_stmt<P: Parser>(
p: &mut P,
label: Option<Spanned<Name>>
) -> ReportedResult<StmtData>
Expand description
Parse an if statement. See IEEE 1076-2008 section 10.8.
if_stmt :=
"if" expr "then" {stmt}
{"elsif" expr "then" {stmt}}
["else" {stmt}]
"end" "if" [ident] ";"