applying transfer to react app

This commit is contained in:
Tyler Koenig
2021-09-20 16:54:47 -04:00
parent 8819f31dd0
commit c612b7d702
37373 changed files with 3775588 additions and 2871 deletions

View File

@@ -0,0 +1,17 @@
"use strict";
const parser = require("./generated-parser.js");
exports.name = function (potentialName) {
return mapResult(parser.startWith("Name").exec(potentialName));
};
exports.qname = function (potentialQname) {
return mapResult(parser.startWith("QName").exec(potentialQname));
};
function mapResult(result) {
return {
success: result.success,
error: result.error && parser.getTrace(result.error.message)
};
}