forked from silentmatt/expr-eval
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
34 lines (29 loc) · 1009 Bytes
/
index.js
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
/*!
Based on ndef.parser, by Raphael Graf([email protected])
http://www.undefined.ch/mparser/index.html
Ported to JavaScript and modified by Matthew Crumley ([email protected], http://silentmatt.com/)
You are free to use and modify this code in anyway you find useful. Please leave this comment in the code
to acknowledge its original source. If you feel like it, I enjoy hearing about projects that use my code,
but don't feel like you have to let me know or ask permission.
*/
import * as functions from './src/functions.js';
import evaluate from './src/evaluate.js';
import { Expression } from './src/expression.js';
import { Parser } from './src/parser.js';
import { ParserState } from './src/parser-state.js';
import { TEOF } from './src/token.js';
import { TokenStream } from './src/token-stream.js';
export {
Expression,
Parser,
ParserState,
TEOF,
TokenStream,
evaluate,
functions
};
// Backwards compatibility
export default{
Parser: Parser,
Expression: Expression
};