This method takes the given string and turns it into a parser for that token.
This method takes the given string and turns it into a parser for that token.
This method can be brought into scope in a parser to allow string literals to naturally serve as tokens. In particular, it will correctly deal with known keywords and operators, and otherwise handle other strings at face-value.
Attributes
Since
4.0.0
Note
it is assumed that the token's content is irrelevant, since it is already known what it is, so Unit is returned.