Package com.gengoai.parsing
Interface TokenDef
-
- All Superinterfaces:
Serializable
,Tag
- All Known Implementing Classes:
CommonTypes
public interface TokenDef extends Tag, Serializable
Defines a
Tag
and pattern representing a terminal token to be lexed. Variables (sub-tokens) can be defined using an anonymous capture group, i.e.(?<> ... )
.- Author:
- David B. Bracewell
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getPattern()
Regular expression pattern for use in aLexer
static TokenDef
token(String tag, String pattern)
Constructs a simple token definition using aStringTag
-
Methods inherited from interface com.gengoai.Tag
isInstance, isInstance, label, name, parent
-
-