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
Tokento clearly indicate your custom type of problems:Note that this would fail to chomp
letterbecause of the subsequent characters. Usetokenif you do not want that last letter checked.