Just like Simple.keyword except you provide a Token to clearly indicate your custom type of problems:
Token
const myLet = keyword(Token("let", ExpectingLet))
Note that this would fail to chomp letter because of the subsequent characters. Use token if you do not want that last letter checked.
letter
token
Just like Simple.keyword except you provide a
Token
to clearly indicate your custom type of problems:Note that this would fail to chomp
letter
because of the subsequent characters. Usetoken
if you do not want that last letter checked.