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

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