1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
class KeywordsIfConsumer inherits IWordsConsumer { init() : IStringConsumer {{ matched_words <- matched_words .push("if") .push("then") .push("else") .push("fi") ; self; }}; token() : IToken { new KeywordToken }; };