| org.netbeans.modules.cnd.editor.fortran.FSyntax
FSyntax | public class FSyntax extends Syntax (Code) | | Syntax analyzes for Fortran source files.
Tokens and internal states are given below.
|
Inner Class :public static class MyStateInfo extends Syntax.BaseStateInfo | |
Field Summary | |
protected int | lastNL |
Constructor Summary | |
public | FSyntax() |
Method Summary | |
public int | compareState(StateInfo stateInfo) | public StateInfo | createStateInfo() | public String | getStateName(int stateNumber) | protected boolean | isLineBeyondLimit() | public void | loadState(StateInfo stateInfo) Load valid mark state into the analyzer. | public static TokenID | matchKeyword(char[] buffer, int offset, int len) | protected TokenID | parseToken() This is core function of analyzer and it returns either the token-id
or null to indicate that the end of buffer was found.
The function scans the active character and does one or more
of the following actions:
1. | public void | storeState(StateInfo stateInfo) Store state of this analyzer into given mark state. |
lastNL | protected int lastNL(Code) | | points to the last newline character
|
FSyntax | public FSyntax()(Code) | | constructor
|
compareState | public int compareState(StateInfo stateInfo)(Code) | | Compare state of this analyzer to given state info
|
createStateInfo | public StateInfo createStateInfo()(Code) | | Create state info appropriate for particular analyzer
|
getStateName | public String getStateName(int stateNumber)(Code) | | |
isLineBeyondLimit | protected boolean isLineBeyondLimit()(Code) | | This function returns true if the colun number
exceeds the limit defined by FSettingsDefaults.maximumTextWidth
otherwise it returns null
|
loadState | public void loadState(StateInfo stateInfo)(Code) | | Load valid mark state into the analyzer. Offsets
are already initialized when this method is called. This method
must get the state from the mark and set it to the analyzer. Then
it must decrease tokenOffset by the preScan stored in the mark state.
Parameters: markState - mark state to be loaded into syntax. It must be non-null value. |
matchKeyword | public static TokenID matchKeyword(char[] buffer, int offset, int len)(Code) | | |
parseToken | protected TokenID parseToken()(Code) | | This is core function of analyzer and it returns either the token-id
or null to indicate that the end of buffer was found.
The function scans the active character and does one or more
of the following actions:
1. change internal analyzer state
2. set the token-context-path and return token-id
3. adjust current position to signal different end of token;
the character that offset points to is not included in the token
|
storeState | public void storeState(StateInfo stateInfo)(Code) | | Store state of this analyzer into given mark state.
|
|
|