[][src]Function moore_vhdl_syntax::parser::rules::parse_subprog_spec

pub fn parse_subprog_spec<P: Parser>(p: &mut P) -> ReportedResult<SubprogSpec>

Parse a subprogram specification. This covers the initial part of a subprogram declaration, body, instantiation, or interface declaration. See IEEE 1076-2008 sections 4.2 and 6.5.4. Note that not all combinations of keywords and qualifiers that this parser accepts are actually valid.

subprog_spec :=
  ["pure"|"impure"] "procedure"|"function" primary_name
  ["generic" paren_expr]
  ["generic" "map" paren_expr]
  [["parameter"] paren_expr]
  ["return" name]