Lexer.consume

Attempt to consume the next token. If the token is missing and toConsume is Yes, the following token will be consumed regardless of whether it matches the given pattern. Returns (false, Token) if the token is not of the required type; returns (true, Token) otherwise

class Lexer
Tuple!(bool, Token)
consume
(
ToConsume toConsume = Yes.toConsume
string message = ""
)
(,
string value = ""
)

Meta