summaryrefslogtreecommitdiff
path: root/src/pim/Scanner.h
blob: 2e8143c026d8eb878bf09bfadaa29d5daff936b4 (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();
		};
	}
}