This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const Parse = require('./parser'); | |
//constructor | |
function CreateDictionary(){ | |
this.dictionary = {}; | |
} | |
// reads files from directory, wait for files to get parsed and then return dictionary | |
CreateDictionary.prototype.parseDirectory = function(dirpath){ | |
return new Promise((resolve,reject) => { |