public class GenSrcLexer
extends dyvilx.tools.parsing.lexer.Lexer
| Modifier and Type | Field and Description |
|---|---|
protected int |
blockLevel |
protected int |
braceLevel |
| Constructor and Description |
|---|
GenSrcLexer(dyvilx.tools.parsing.marker.MarkerList markers) |
GenSrcLexer(dyvilx.tools.parsing.marker.MarkerList markers,
int blockLevel) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
parseCharacter(int i) |
static int |
skipWhitespace(java.lang.String line,
int start,
int end)
Returns the first index greater than or equal to
start where the character in line is NOT
whitespace. |
dyvilx.tools.parsing.TokenList |
tokenize(java.lang.String code,
int cursor,
int line,
int column) |
public GenSrcLexer(dyvilx.tools.parsing.marker.MarkerList markers)
public GenSrcLexer(dyvilx.tools.parsing.marker.MarkerList markers,
int blockLevel)
public dyvilx.tools.parsing.TokenList tokenize(java.lang.String code,
int cursor,
int line,
int column)
tokenize in class dyvilx.tools.parsing.lexer.Lexerprotected void parseCharacter(int i)
parseCharacter in class dyvilx.tools.parsing.lexer.Lexerpublic static int skipWhitespace(java.lang.String line,
int start,
int end)
start where the character in line is NOT
whitespace. If no such index is found, end is returned.line - the string to checkstart - the first index (inclusive) to checkend - the last index (exclusive) to check>= start and < end where the character in the string is
non-whitespace, or end.