File: Expression.h

package info (click to toggle)
fastdep 0.16-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 596 kB
  • ctags: 323
  • sloc: cpp: 2,144; ansic: 814; sh: 208; makefile: 124
file content (34 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef EXPRESSION_3C96529467795A46_H_
#define EXPRESSION_3C96529467795A46_H_

class CompileState;

#include <string>

class Expression
{
	public:
		Expression(const std::string& anExpression, CompileState* aState);

		int evaluate();
	private:

		int boolean();
		int equality();
		int relational();
		int additive();
		int multiplicative();
		int factor();

		int macro();

		void ws();
		bool token(const char* aToken);

		std::string Text;
		CompileState* theState;
		unsigned int Pos;
};

#endif