src/codigo/Lexer.java
/**
   * Resumes scanning until the next regular expression is matched,
   * the end of input is encountered or an I/O-Error occurs.
   *
   * @return      the next token
   * @exception   java.io.IOException  if any I/O-Error occurs
   */
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.

@return      the next token
@exception   java.io.IOException  if any I/O-Error occurs
Resumes scanning until the next regular expression is matched the end of input is encountered or an I / O - Error occurs . @return the next token @exception java . io . IOException if any I / O - Error occurs
public Tokens yylex() throws java.io.IOException {
    int zzInput;
    int zzAction;
    int zzCurrentPosL;
    int zzMarkedPosL;
    int zzEndReadL = zzEndRead;
    char [] zzBufferL = zzBuffer;
    char [] zzCMapL = ZZ_CMAP;
    int [] zzTransL = ZZ_TRANS;
    int [] zzRowMapL = ZZ_ROWMAP;
    int [] zzAttrL = ZZ_ATTRIBUTE;
    while (true) {
      zzMarkedPosL = zzMarkedPos;
      if (zzMarkedPosL > zzStartRead) {
        switch (zzBufferL[zzMarkedPosL-1]) {
        case '\n':
        case '\u000B':
        case '\u000C':
        case '\u0085':
        case '\u2028':
        case '\u2029':
          zzAtBOL = true;
          break;
        case '\r': 
          if (zzMarkedPosL < zzEndReadL)
            zzAtBOL = zzBufferL[zzMarkedPosL] != '\n';
          else if (zzAtEOF)
            zzAtBOL = false;
          else {
            boolean eof = zzRefill();
            zzMarkedPosL = zzMarkedPos;
            zzEndReadL = zzEndRead;
            zzBufferL = zzBuffer;
            if (eof) 
              zzAtBOL = false;
            else 
              zzAtBOL = zzBufferL[zzMarkedPosL] != '\n';
          }
          break;
        default:
          zzAtBOL = false;
        }
      }
      zzAction = -1;
      zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;
      if (zzAtBOL)
        zzState = ZZ_LEXSTATE[zzLexicalState+1];
      else
        zzState = ZZ_LEXSTATE[zzLexicalState];
      zzForAction: {
        while (true) {
          if (zzCurrentPosL < zzEndReadL)
            zzInput = zzBufferL[zzCurrentPosL++];
          else if (zzAtEOF) {
            zzInput = YYEOF;
            break zzForAction;
          }
          else {
            zzCurrentPos  = zzCurrentPosL;
            zzMarkedPos   = zzMarkedPosL;
            boolean eof = zzRefill();
            zzCurrentPosL  = zzCurrentPos;
            zzMarkedPosL   = zzMarkedPos;
            zzBufferL      = zzBuffer;
            zzEndReadL     = zzEndRead;
            if (eof) {
              zzInput = YYEOF;
              break zzForAction;
            }
            else {
              zzInput = zzBufferL[zzCurrentPosL++];
            }
          }
          int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ];
          if (zzNext == -1) break zzForAction;
          zzState = zzNext;
          int zzAttributes = zzAttrL[zzState];
          if ( (zzAttributes & 1) == 1 ) {
            zzAction = zzState;
            zzMarkedPosL = zzCurrentPosL;
            if ( (zzAttributes & 8) == 8 ) break zzForAction;
          }
        }
      }
      zzMarkedPos = zzMarkedPosL;
      switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
        case 8: 
          { return Abre_Parentesis;
          }
        case 11: break;
        case 1: 
          { return ERROR;
          }
        case 12: break;
        case 7: 
          { return Division;
          }
        case 13: break;
        case 4: 
          { return Suma;
          }
        case 14: break;
        case 3: 
          { return Potencia;
          }
        case 15: break;
        case 9: 
          { return Cierra_Parentesis;
          }
        case 16: break;
        case 2: 
          { lexeme=yytext(); return Digito;
          }
        case 17: break;
        case 6: 
          { return Multiplicacion;
          }
        case 18: break;
        case 10: 
          { lexeme=yytext(); return Valida;
          }
        case 19: break;
        case 5: 
          { return Resta;
          }
        case 20: break;
        default: 
          if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
            zzAtEOF = true;
            return null;
          } 
          else {
            zzScanError(ZZ_NO_MATCH);
          }
      }
    }
  }
public Tokens yylex ( ) throws java . io . IOException { int zzInput ; int zzAction ; int zzCurrentPosL ; int zzMarkedPosL ; int zzEndReadL = zzEndRead ; char [ ] zzBufferL = zzBuffer ; char [ ] zzCMapL = ZZ_CMAP ; int [ ] zzTransL = ZZ_TRANS ; int [ ] zzRowMapL = ZZ_ROWMAP ; int [ ] zzAttrL = ZZ_ATTRIBUTE ; while ( true ) { zzMarkedPosL = zzMarkedPos ; if ( zzMarkedPosL > zzStartRead ) { switch ( zzBufferL [ zzMarkedPosL - 1 ] ) { case '\n' : case '\u000B' : case '\u000C' : case '\u0085' : case '\u2028' : case '\u2029' : zzAtBOL = true ; break ; case '\r' : if ( zzMarkedPosL < zzEndReadL ) zzAtBOL = zzBufferL [ zzMarkedPosL ] != '\n' ; else if ( zzAtEOF ) zzAtBOL = false ; else { boolean eof = zzRefill ( ) ; zzMarkedPosL = zzMarkedPos ; zzEndReadL = zzEndRead ; zzBufferL = zzBuffer ; if ( eof ) zzAtBOL = false ; else zzAtBOL = zzBufferL [ zzMarkedPosL ] != '\n' ; } break ; default : zzAtBOL = false ; } } zzAction = - 1 ; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL ; if ( zzAtBOL ) zzState = ZZ_LEXSTATE [ zzLexicalState + 1 ] ; else zzState = ZZ_LEXSTATE [ zzLexicalState ] ; zzForAction : { while ( true ) { if ( zzCurrentPosL < zzEndReadL ) zzInput = zzBufferL [ zzCurrentPosL ++ ] ; else if ( zzAtEOF ) { zzInput = YYEOF ; break zzForAction ; } else { zzCurrentPos = zzCurrentPosL ; zzMarkedPos = zzMarkedPosL ; boolean eof = zzRefill ( ) ; zzCurrentPosL = zzCurrentPos ; zzMarkedPosL = zzMarkedPos ; zzBufferL = zzBuffer ; zzEndReadL = zzEndRead ; if ( eof ) { zzInput = YYEOF ; break zzForAction ; } else { zzInput = zzBufferL [ zzCurrentPosL ++ ] ; } } int zzNext = zzTransL [ zzRowMapL [ zzState ] + zzCMapL [ zzInput ] ] ; if ( zzNext == - 1 ) break zzForAction ; zzState = zzNext ; int zzAttributes = zzAttrL [ zzState ] ; if ( ( zzAttributes & 1 ) == 1 ) { zzAction = zzState ; zzMarkedPosL = zzCurrentPosL ; if ( ( zzAttributes & 8 ) == 8 ) break zzForAction ; } } } zzMarkedPos = zzMarkedPosL ; switch ( zzAction < 0 ? zzAction : ZZ_ACTION [ zzAction ] ) { case 8 : { return Abre_Parentesis ; } case 11 : break ; case 1 : { return ERROR ; } case 12 : break ; case 7 : { return Division ; } case 13 : break ; case 4 : { return Suma ; } case 14 : break ; case 3 : { return Potencia ; } case 15 : break ; case 9 : { return Cierra_Parentesis ; } case 16 : break ; case 2 : { lexeme = yytext ( ) ; return Digito ; } case 17 : break ; case 6 : { return Multiplicacion ; } case 18 : break ; case 10 : { lexeme = yytext ( ) ; return Valida ; } case 19 : break ; case 5 : { return Resta ; } case 20 : break ; default : if ( zzInput == YYEOF && zzStartRead == zzCurrentPos ) { zzAtEOF = true ; return null ; } else { zzScanError ( ZZ_NO_MATCH ) ; } } } }
Resumes scanning until the next regular expression is matched,
 the end of input is encountered or an I/O-Error occurs.
Resumes scanning until the next regular expression is matched the end of input is encountered or an I / O - Error occurs .
// cached fields:
 // store back cached positions
 // get translated positions and possibly new buffer
 // store back cached position
