math-expression-evaluator
Version:
A flexible math expression evaluator
22 lines (21 loc) • 879 B
TypeScript
import { Token, ParsedToken } from "./token";
import Mexp from "./index";
/**
0 : function with syntax function_name(Maths_exp)
1 : numbers
2 : binary operators like * / Mod left associate and same precedence
3 : Math constant values like e,pi,Cruncher ans
4 : opening bracket
5 : closing bracket
6 : decimal
7 : function with syntax (Math_exp)function_name
8: function with syntax function_name(Math_exp1,Math_exp2)
9 : binary operator like +,-
10: binary operator like P C or ^
11: ,
12: function with , seperated three parameters and third parameter is a string that will be mexp string
13: variable of Sigma function
*/
export declare function addToken(this: Mexp, newTokens: Token[]): void;
export declare const lex: (this: Mexp, inp: string, tokens?: Token[]) => ParsedToken[];
//# sourceMappingURL=lexer.d.ts.map