summaryrefslogtreecommitdiff
path: root/src/pim/Scanner.h
blob: 70e02acd51b40777e6290927ac46a8091116f1f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include <string>
#include <sstream>
#include "Token.h"
namespace pim
{
	namespace compiler
	{
		class Scanner
		{
			char cChar;
			int cLine;
			std::string cToken;
			std::stringstream & source;
			void nextCharacter();
		public:
			Scanner(std::stringstream & source_);
			Token NextToken();
		};
	}
}