Moved to main repo

This commit is contained in:
Daniel
2021-01-29 18:37:13 +01:00
parent 6a4af929f1
commit fd97e3bda9
5 changed files with 722 additions and 0 deletions

12
odata/lib/odata2cqn.js Normal file
View File

@@ -0,0 +1,12 @@
const fs = require("fs");
const path = require("path");
const peg = require("pegjs");
const pegGrammarPath = path.join(__dirname, "/odata2cqn.pegjs");
const odataPegGrammar = fs.readFileSync(pegGrammarPath, {
encoding: "utf8",
flag: "r",
});
const parser = peg.generate(odataPegGrammar);
module.exports = { parser };