forked from msironi/expr-eval
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.ts
More file actions
53 lines (46 loc) · 1.36 KB
/
index.ts
File metadata and controls
53 lines (46 loc) · 1.36 KB
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
/*!
Based on ndef.parser, by Raphael Graf(r@undefined.ch)
http://www.undefined.ch/mparser/index.html
Ported to JavaScript and modified by Matthew Crumley (email@matthewcrumley.com, 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 { Expression } from './src/core/expression.js';
import { Parser } from './src/parsing/parser.js';
import { createLanguageService } from './src/language-service/index.js';
// Re-export types for public API
export type {
Value,
Values,
ParserOptions,
UnaryOperator,
BinaryOperator,
SymbolOptions,
VariableAlias,
VariableValue,
VariableResolveResult,
VariableResolver,
OperatorFunction
} from './src/types/index.js';
// Re-export custom error classes
export {
ExpressionError,
ParseError,
EvaluationError,
ArgumentError,
AccessError,
VariableError,
FunctionError
} from './src/types/errors.js';
export type {
LanguageServiceApi,
HoverV2,
GetCompletionsParams,
GetHoverParams,
GetDiagnosticsParams,
HighlightToken,
LanguageServiceOptions,
ArityInfo
} from './src/language-service/index.js';
export { createLanguageService, Expression, Parser };