Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 25th, 2012  |  syntax: None  |  size: 0.34 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2.     /**
  3.      * Program = "program" ident {ConstDecl | VarDecl | ClassDecl} "{" {MethodDecl} "}".
  4.      */
  5.     private void Program() {
  6.         check(Token.Kind.PROGRAM);
  7.         Ident();
  8.         // {ConstDecl | VarDecl | ClassDecl}
  9.         check(Token.Kind.LEFT_BRACE);
  10.         MethodDecl();
  11.         check(Token.Kind.RIGHT_BRACE);
  12.     }