Package net.luis.utils.io.token.definition


package net.luis.utils.io.token.definition
  • Class
    Description
    Token definition for a single character.
    This token definition matches a string that is equal to the token character.
    Token definition for escaped characters.
    This token definition matches a string that starts with a backslash (\) and is followed by the token character.
    Example:
    Token definition for a string.
    This token definition matches a string that is equal to the token string.
    Functional interface for a token definition.
    A token definition defines a token and provides a method to check if a word matches the token.
    Token definition for a word.
    This token definition matches a string that is not empty.
    It should be used for tokens that cannot be defined by a single character or string.
    An example would be identifiers in programming languages.