forked from olcxjas-softworks/LarpixClient
Add capacitorjs runtime
This commit is contained in:
parent
d0ece489ee
commit
f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions
21
node_modules/@xml-tools/parser/lib/api.js
generated
vendored
Normal file
21
node_modules/@xml-tools/parser/lib/api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
const { xmlLexer } = require("./lexer");
|
||||
const { xmlParser } = require("./parser");
|
||||
|
||||
module.exports = {
|
||||
parse: function parse(text) {
|
||||
const lexResult = xmlLexer.tokenize(text);
|
||||
// setting a new input will RESET the parser instance's state.
|
||||
xmlParser.input = lexResult.tokens;
|
||||
// any top level rule may be used as an entry point
|
||||
const cst = xmlParser.document();
|
||||
|
||||
return {
|
||||
cst: cst,
|
||||
tokenVector: lexResult.tokens,
|
||||
lexErrors: lexResult.errors,
|
||||
parseErrors: xmlParser.errors,
|
||||
};
|
||||
},
|
||||
|
||||
BaseXmlCstVisitor: xmlParser.getBaseCstVisitorConstructor(),
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue