-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.ts
More file actions
37 lines (33 loc) · 1.1 KB
/
index.ts
File metadata and controls
37 lines (33 loc) · 1.1 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
/*
* Copyright (c) 2022, Ben Jilks <[email protected]>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
import { Engine } from './src/engine'
import { DataType, Variable, NativeFunction, nil } from './src/runtime'
import { make_boolean, make_number, make_string } from './src/runtime'
import { compile } from './src/compiler'
import { std_lib, variable_to_string } from './src/lib'
import * as lexer from './src/lexer'
import * as parser from './src/parser'
import * as ast from './src/ast'
import * as opcode from './src/opcode'
import * as runtime from './src/runtime'
export const Nil = DataType.Nil
export const Boolean = DataType.Boolean
export const Number = DataType.Number
export const String = DataType.String
export const Function = DataType.Function
export const NativeFunctionType = DataType.NativeFunction
export const Table = DataType.Table
export
{
std_lib as std_global,
nil,
make_boolean as boolean,
make_number as number,
make_string as string,
variable_to_string as to_string,
Engine, DataType, Variable, NativeFunction,
lexer, parser, ast, compile, opcode, runtime,
}