Typescript all the parser things
This commit is contained in:
45
app/imports/parser/parseTree/index.ts
Normal file
45
app/imports/parser/parseTree/index.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
console.log('index.ts imports')
|
||||
|
||||
import accessor from '/imports/parser/parseTree/accessor';
|
||||
import array from '/imports/parser/parseTree/array';
|
||||
import call from '/imports/parser/parseTree/call';
|
||||
import constant from '/imports/parser/parseTree/constant';
|
||||
import error from '/imports/parser/parseTree/error';
|
||||
import ifNode from '/imports/parser/parseTree/if';
|
||||
import index from '/imports/parser/parseTree/indexNode';
|
||||
import not from '/imports/parser/parseTree/not';
|
||||
import operator from '/imports/parser/parseTree/operator';
|
||||
import parenthesis from '/imports/parser/parseTree/parenthesis';
|
||||
import roll from '/imports/parser/parseTree/roll';
|
||||
import rollArray from '/imports/parser/parseTree/rollArray';
|
||||
import unaryOperator from '/imports/parser/parseTree/unaryOperator';
|
||||
|
||||
console.log('index.ts')
|
||||
|
||||
const factories = {
|
||||
accessor,
|
||||
array,
|
||||
call,
|
||||
constant,
|
||||
error,
|
||||
if: ifNode,
|
||||
index,
|
||||
not,
|
||||
operator,
|
||||
parenthesis,
|
||||
roll,
|
||||
rollArray,
|
||||
// What used to be symbols are now just treated as accessors without a path
|
||||
symbol: accessor,
|
||||
unaryOperator,
|
||||
};
|
||||
|
||||
console.log('---------------------');
|
||||
console.log('---------------------');
|
||||
console.log('---------------------');
|
||||
console.log(factories.array);
|
||||
console.log('---------------------');
|
||||
console.log('---------------------');
|
||||
console.log('---------------------');
|
||||
|
||||
export default factories;
|
||||
Reference in New Issue
Block a user