void recordToken(@NonNull String image, int startLine, int startCol, int endLine, int endCol)
Record a token given its coordinates. Coordinates must match the requirements of
FileLocation
, ie, be 1-based and ordered properly.
image
- Image of the token. This will be taken into account to determine the hash value of the token.
startLine
- Start line of the token
startCol
- Start column of the token
endLine
- End line of the token
endCol
- End column of the token
default void recordToken(@NonNull String image, @NonNull FileLocation location)
Record a token given its coordinates. Coordinates must match the requirements of
FileLocation
, ie, be 1-based and ordered properly.
image
- Image of the token. This will be taken into account to determine the hash value of the token.
location
- Location of the token.
LexException makeLexException(int line, int column, String message, @Nullable Throwable cause)
void setImage(TokenEntry entry, @NonNull String newImage)
Sets the image of an existing token entry.
@Nullable TokenEntry peekLastToken()
Returns the last token that has been recorded in this file.
void close()
close
in interface AutoCloseable
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4