Class Lexer
java.lang.Object
org.wpilib.util.struct.parser.Lexer
Raw struct schema lexer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the starting position of the last lexed token.Gets the text of the last lexed token.scan()Gets the next token.
-
Constructor Details
-
Lexer
-
-
Method Details
-
scan
Gets the next token.- Returns:
- Token kind; the token text can be retrieved using getTokenText()
-
getTokenText
-
getPosition
public int getPosition()Gets the starting position of the last lexed token.- Returns:
- position (0 = first character)
-