forked from enviPath/enviPy
Current Dev State
This commit is contained in:
12
static/js/ketcher2/node_modules/regjsparser/CHANGELOG
generated
vendored
Normal file
12
static/js/ketcher2/node_modules/regjsparser/CHANGELOG
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
2014-08-31: Version 0.1.2
|
||||
* Change the field ref to matchIndex on the type=refernce node (issue #67)
|
||||
|
||||
2014-08-30: Version 0.1.1
|
||||
* Only handled unicode code point escapes if 'u' flag is set (issue #56)
|
||||
* Removed `matchIdx` from the AST
|
||||
* References like /\1/ were broken (issue #57)
|
||||
* Renamed type `ref` to `reference` in the AST
|
||||
* Update regex to match identifier and include script to generate regex
|
||||
|
||||
2014-06-29: Version 0.1.0
|
||||
* first tagged release
|
||||
19
static/js/ketcher2/node_modules/regjsparser/LICENSE.BSD
generated
vendored
Normal file
19
static/js/ketcher2/node_modules/regjsparser/LICENSE.BSD
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
||||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
34
static/js/ketcher2/node_modules/regjsparser/README.md
generated
vendored
Normal file
34
static/js/ketcher2/node_modules/regjsparser/README.md
generated
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
# RegJSParser
|
||||
|
||||
Parsing the JavaScript's RegExp in JavaScript.
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install regjsparser
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var parse = require('regjsparser').parse;
|
||||
|
||||
var parseTree = parse('^a'); // /^a/
|
||||
console.log(parseTree);
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
To run the tests, run the following command:
|
||||
|
||||
```bash
|
||||
npm test
|
||||
```
|
||||
|
||||
To create a new reference file, execute…
|
||||
|
||||
```bash
|
||||
node test/update-fixtures.js
|
||||
```
|
||||
|
||||
…from the repo top directory.
|
||||
50
static/js/ketcher2/node_modules/regjsparser/bin/parser
generated
vendored
Executable file
50
static/js/ketcher2/node_modules/regjsparser/bin/parser
generated
vendored
Executable file
@ -0,0 +1,50 @@
|
||||
#!/usr/bin/env node
|
||||
(function() {
|
||||
|
||||
var fs = require('fs');
|
||||
var parse = require('../parser').parse;
|
||||
var jsesc = require('jsesc');
|
||||
var regexes = process.argv.splice(2);
|
||||
var first = regexes[0];
|
||||
var data;
|
||||
var log = console.log;
|
||||
var main = function() {
|
||||
if (/^(?:-h|--help|undefined)$/.test(first)) {
|
||||
log([
|
||||
'\nUsage:\n',
|
||||
'\tregjsparser [regex ...]',
|
||||
'\tregjsparser [-h | --help]',
|
||||
'\nExamples:\n',
|
||||
'\tregjsparser \'^foo.bar$\'',
|
||||
'\tregjsparser \'[a-zA-Z0-9]\''
|
||||
].join('\n'));
|
||||
return process.exit(1);
|
||||
}
|
||||
|
||||
regexes.forEach(function(snippet) {
|
||||
var result;
|
||||
try {
|
||||
result = parse(snippet);
|
||||
log(jsesc(result, {
|
||||
'json': true,
|
||||
'compact': false,
|
||||
'indent': '\t'
|
||||
}));
|
||||
} catch(error) {
|
||||
log(error.message + '\n');
|
||||
log('Error: failed to parse. Make sure the regular expression is valid.');
|
||||
log('If you think this is a bug in regjsparser, please report it:');
|
||||
log('\thttps://github.com/jviereck/regjsparser/issues/new');
|
||||
log('\nStack trace:\n');
|
||||
log(error.stack);
|
||||
return process.exit(1);
|
||||
}
|
||||
});
|
||||
// Return with exit status 0 outside of the `forEach` loop, in case
|
||||
// multiple regular expressions were passed in.
|
||||
return process.exit(0);
|
||||
};
|
||||
|
||||
main();
|
||||
|
||||
}());
|
||||
63
static/js/ketcher2/node_modules/regjsparser/package.json
generated
vendored
Normal file
63
static/js/ketcher2/node_modules/regjsparser/package.json
generated
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
{
|
||||
"_from": "regjsparser@^0.1.4",
|
||||
"_id": "regjsparser@0.1.5",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=",
|
||||
"_location": "/regjsparser",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "regjsparser@^0.1.4",
|
||||
"name": "regjsparser",
|
||||
"escapedName": "regjsparser",
|
||||
"rawSpec": "^0.1.4",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.1.4"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/regexpu-core"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz",
|
||||
"_shasum": "7ee8f84dc6fa792d3fd0ae228d24bd949ead205c",
|
||||
"_spec": "regjsparser@^0.1.4",
|
||||
"_where": "/home/manfred/enviPath/ketcher2/ketcher/node_modules/regexpu-core",
|
||||
"author": {
|
||||
"name": "'Julian Viereck'",
|
||||
"email": "julian.viereck@gmail.com"
|
||||
},
|
||||
"bin": {
|
||||
"regjsparser": "bin/parser"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/jviereck/regjsparser/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"jsesc": "~0.5.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Parsing the JavaScript's RegExp in JavaScript.",
|
||||
"devDependencies": {
|
||||
"regenerate": "~1.0.1",
|
||||
"unicode-7.0.0": "~0.1.5"
|
||||
},
|
||||
"files": [
|
||||
"bin/",
|
||||
"LICENSE.BSD",
|
||||
"parser.js",
|
||||
"README.md"
|
||||
],
|
||||
"homepage": "https://github.com/jviereck/regjsparser",
|
||||
"license": "BSD",
|
||||
"main": "./parser",
|
||||
"name": "regjsparser",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@github.com/jviereck/regjsparser.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test/index.js"
|
||||
},
|
||||
"version": "0.1.5"
|
||||
}
|
||||
962
static/js/ketcher2/node_modules/regjsparser/parser.js
generated
vendored
Normal file
962
static/js/ketcher2/node_modules/regjsparser/parser.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user