break;
}
}
}
Token token = null;
if( this.currentState == State.END )
token = new Token( type, this.buffer, this.currentLine );
else if( !this.buffer.isEmpty() )
token = new Token( this.stateToTokenType( this.currentState ), this.buffer, this.currentLine );
this.currentState = State.BEGIN;
this.clearBuffer();
return token;
}