First page Back Continue Last page Summary Graphic

Declarations in LL(1)

  • Decl = VoidFunDecl
  • | Type ident TypedDecl.e
  • VoidFunDecl = "void" ident "(" FormalOpt ")" ";".e
  • TypedDecl = ";"
  • | "(" FormalOpt ")" ";".e
  • Type = "int" Brackets
  • | "string" Brackets.e
  • Brackets = "[" "]" Brackets | e.
  • FormalOpt = Type ident | e.