SWT LPEX
v3.0.5

com.ibm.lpex.fortran
Interface IFortranLexer

All Known Implementing Classes:
FortranFFLexer

public interface IFortranLexer

Interface FortranLexer can be implemented to define a Fortran lexer to be used by a FortranParser.


Method Summary
 void initialize()
          Initializes the Fortran lexer.
 int processToken()
          Retrieves and processes the next Fortran token.
 void reinitialize()
          Reinitializes the Fortran lexer.
 

Method Detail

initialize

public void initialize()
Initializes the Fortran lexer. The token manager is initialized for the same character input stream, and in the default lexical state (DEFAULT). This method is normally called when the host parser sets or switches the active lexer to this lexer.


reinitialize

public void reinitialize()
Reinitializes the Fortran lexer. The token manager is reinitialized for the same character input stream, and in the default lexical state (DEFAULT). This method is normally called after a TokenMgrError exception (e.g., encountered EOF in the middle of a token / a bad character), after the token in error is skipped and parsing is continued.


processToken

public int processToken()
Retrieves and processes the next Fortran token.

Returns:
LEXER_RC_OK, LEXER_RC_EOF [+LEXER_RC_MORE]
See Also:
LpexCommonParser.LEXER_RC_OK, LpexCommonParser.LEXER_RC_EOF, LpexCommonParser.LEXER_RC_MORE

SWT LPEX
v3.0.5

(C) Copyright IBM Corporation 1998, 2005.  All Rights Reserved.