Summary Files Commits Branches @commit @diff @stats
path: root / src / StringConsumer / BaseConsumers / WhitespaceConsumer.cl
blob: 3a8c4dc5ccde82d2baf1a77b6d8547b86d1e0f78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
class WhitespaceConsumer inherits IWordsConsumer {
	init() : IStringConsumer {{
		matched_words <- matched_words
			.push(" ")
			.push("\t")
			;
		self;
	}};

	token() : IToken {
		new WhitespaceToken
	};
};