|
LPEX 3.6.7 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.lpex.cc.FortranFixedFormTokenManager
com.ibm.lpex.fortran.FixedFormLexer
public final class FixedFormLexer
Lexer for Fortran fixed source form.
Field Summary |
---|
Fields inherited from class com.ibm.lpex.cc.FortranFixedFormTokenManager |
---|
curChar, jjnewLexState, jjstrLiteralImages, lexStateNames |
Constructor Summary | |
---|---|
FixedFormLexer(LpexCharStream charStream,
FortranLexerStyles styles,
FortranLexerClasses classes)
Constructor. |
Method Summary | |
---|---|
void |
initialize()
Initializes the Fortran FF lexer. |
int |
processToken()
Retrieves and processes the next Fortran token. |
void |
reinitialize()
Reinitializes the Fortran FF lexer. |
protected void |
setComment(Token t)
Sets style and class for comments. |
protected void |
setErrorLine(Token t)
Sets style and class for a line in error ("error.. EOL"). |
void |
setTaskTags(String[] taskTags)
Sets the comment task tags to use. |
Methods inherited from class com.ibm.lpex.cc.FortranFixedFormTokenManager |
---|
getCurLexState, getNextToken, ReInit, ReInit, SwitchTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedFormLexer(LpexCharStream charStream, FortranLexerStyles styles, FortranLexerClasses classes)
charStream
- LPEX input character streamstyles
- style characters to use (predefined by host parser)classes
- classes to use (predefined by host parser)Method Detail |
---|
public void initialize()
initialize
in interface IFortranLexer
public void reinitialize()
reinitialize
in interface IFortranLexer
public void setTaskTags(String[] taskTags)
setTaskTags
in interface IFortranLexer
taskTags
- array of non-null, non-empty strings, or
null
if no task tags in effectpublic int processToken()
processToken
in interface IFortranLexer
LpexCommonParser.LEXER_RC_OK
,
LpexCommonParser.LEXER_RC_EOF
,
LpexCommonParser.LEXER_RC_MORE
protected void setComment(Token t)
\n
encountered while in a comment SPECIAL_TOKEN.
SPECIAL_TOKEN, rather than TOKEN, is used for these, as we don't need to
see the same tokens in processToken() too, nor have them recorded in the
parse.
Does the real work for the method declared in FortranFixedForm.jj.
setComment
in class FortranFixedFormTokenManager
t
- special token (token.beginLine, token.beginColumn,
token.endLine, and token.endColumn identify its location: ONE-based
elements and positions in the associated document view)protected void setErrorLine(Token t)
\n
encountered while in error-line state
SPECIAL_TOKEN. SPECIAL_TOKEN, rather than TOKEN, is used for this, as we
don't need to see this token in processToken() too.
Does the real work for the method declared in FortranFixedForm.jj.
setErrorLine
in class FortranFixedFormTokenManager
t
- special token
|
LPEX 3.6.7 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |