|
Absimpa v196 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectabsimpa.lexer.SimpleLexer<ExprLanguage.Expr,example.ExprLanguage.Codes>
example.ExprLanguage.L
public static class ExprLanguage.L
| Constructor Summary | |
|---|---|
ExprLanguage.L(example.ExprLanguage.Codes eofCode)
|
|
| Method Summary | |
|---|---|
ExprLanguage.L |
addToken(example.ExprLanguage.Codes tc,
java.lang.String regex)
adds a mapping from a regular expression to the given token code. |
| Methods inherited from class absimpa.lexer.SimpleLexer |
|---|
current, currentText, currentToken, initAnalysis, next, parseException, setSkipRe, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExprLanguage.L(example.ExprLanguage.Codes eofCode)
| Method Detail |
|---|
public ExprLanguage.L addToken(example.ExprLanguage.Codes tc,
java.lang.String regex)
SimpleLexer
adds a mapping from a regular expression to the given token code. No
provisions are taken to detect conflicting regular expressions, i.e.
regular expressions with common matches. To define a specific keyword,
e.g. package and also a general identifier, e.g.
[a-z]+, make sure to call addToken first
for the more specific token. Otherwise it will never be matched.
addToken in class SimpleLexer<ExprLanguage.Expr,example.ExprLanguage.Codes>
|
Absimpa v196 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||