UNPKG

907 BTypeScriptView Raw
1declare function factorial(a: number): number;
2declare function power(a: number, b: number): number;
3declare function sqrt(a: number): number;
4declare const exponentialSymbols: {
5 symbols: {
6 '!': {
7 postfix: {
8 symbol: '!';
9 f: factorial;
10 notation: 'postfix';
11 precedence: 6;
12 rightToLeft: 0;
13 argCount: 1;
14 };
15 symbol: '!';
16 regSymbol: '!';
17 };
18 '^': {
19 infix: {
20 symbol: '^';
21 f: power;
22 notation: 'infix';
23 precedence: 5;
24 rightToLeft: 1;
25 argCount: 2;
26 };
27 symbol: '^';
28 regSymbol: '\\^';
29 };
30 sqrt: {
31 func: {
32 symbol: 'sqrt';
33 f: sqrt;
34 notation: 'func';
35 precedence: 0;
36 rightToLeft: 0;
37 argCount: 1;
38 };
39 symbol: 'sqrt';
40 regSymbol: 'sqrt\\b';
41 };
42 };
43};
44
45export default exponentialSymbols;