Add capacitorjs runtime

This commit is contained in:
olcxja 2026-05-03 17:09:55 +02:00
commit f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions

21
node_modules/@xml-tools/parser/lib/api.js generated vendored Normal file
View 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(),
};