-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArithmeticExpressionEvaluator.d.ts
59 lines (52 loc) · 1.28 KB
/
ArithmeticExpressionEvaluator.d.ts
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
///<reference types="node" />
export declare class ArithmeticExpressionEvaluator {
static INVALID_NUMBER :number
str: string;
pos: number;
ch: string;
evaluate(expression: string): number
/**
* Methode to evaluate everything
* @returns {number}
*/
evaluateAll(expression: string, resultIsInteger: boolean): number
/**
* Methode to evaluate everything and return an Integer
* @returns {number}
*/
nextChar() : string
/**
* Methode to get the next char in the string
* @returns {string}
*/
eat(charToEat: string): boolean
/**
* Methode to build the calculation
* @returns {boolean}
*/
parse(): number
/**
* Methode to parse the next char
* @returns {number}
*/
parseExpression(): number
/**
* Methode to parse expressions (+, -)
* @returns {number}
*/
parseTerm(): number
/**
* Methode to parse terms (*,/)
* @returns {number}
*/
parseFactor(): number
/**
* Methode to calc everything
* @returns {number}
*/
degreesToRadians(degrees: number): number
/**
* Methode to turn degrees to radians
* @returns {number}
*/
}