Logo Search packages:      
Sourcecode: jflex version File versions

void java_cup::runtime::lr_parser::read_lookahead (  )  throws java.lang.Exception [inline, protected]

Read from input to establish our buffer of "parse ahead" lookahead Symbols.

Definition at line 974 of file lr_parser.java.

References cur_token, error_sync_size(), lookahead, lookahead_pos, and scan().

Referenced by error_recovery().

    {
      /* create the lookahead array */
      lookahead = new Symbol[error_sync_size()];

      /* fill in the array */
      for (int i = 0; i < error_sync_size(); i++)
      {
        lookahead[i] = cur_token;
        cur_token = scan();
      }

      /* start at the beginning */
      lookahead_pos = 0;
    }


Generated by  Doxygen 1.6.0   Back to index