Summary Files Commits Branches @commit @diff @stats
path: root / src / StringConsumer / BaseConsumers / KeywordsIfConsumer.cl
blob: 9bd76e973ebd96e8a41e5030d93bebc711f29c97 (plain) (blame)
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
	};
};