| java.lang.Object org.netbeans.editor.Syntax org.netbeans.editor.ext.plain.PlainSyntax
PlainSyntax | public class PlainSyntax extends Syntax (Code) | | Lexical analyzer for the plain text.
author: Miloslav Metelka version: 1.00 |
Method Summary | |
protected TokenID | parseToken() This is core function of analyzer and it returns one of following
numbers: a) token number of next token from scanned text b) EOL when end
of line was found in scanned buffer c) EOT when there is no more chars
available in scanned buffer.
The function scans the active character and does one or more of the
following actions: 1. |
PlainSyntax | public PlainSyntax()(Code) | | |
parseToken | protected TokenID parseToken()(Code) | | This is core function of analyzer and it returns one of following
numbers: a) token number of next token from scanned text b) EOL when end
of line was found in scanned buffer c) EOT when there is no more chars
available in scanned buffer.
The function scans the active character and does one or more of the
following actions: 1. change internal analyzer state (state = new-state)
2. return token ID (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
|
|
|