Summary Files Commits Branches @commit @diff @stats
path: root / src / StringConsumer / BaseConsumers / IntegerConsumer.cl
blob: 5b4cd82961591da491568be8ba633c44659c221d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class IntegerConsumer inherits IWordsConsumer {
	init() : IStringConsumer {{
		matched_words <- matched_words
			.push("0")
			.push("1")
			.push("2")
			.push("3")
			.push("4")
			.push("5")
			.push("6")
			.push("7")
			.push("8")
			.push("9")
			;
		self;
	}};

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