Removed GopherJS, basic frontend completed, need backend changes for

torrent storage
This commit is contained in:
2017-11-30 18:12:11 -05:00
parent 67fdef16b1
commit e98ad2cc88
69321 changed files with 5498914 additions and 337 deletions

View 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

View 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.

View 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.

View 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();
}());

View File

@@ -0,0 +1,66 @@
{
"_args": [
[
"regjsparser@0.1.5",
"C:\\Users\\deranjer\\GoglandProjects\\torrent-project\\torrent-project"
]
],
"_from": "regjsparser@0.1.5",
"_id": "regjsparser@0.1.5",
"_inBundle": false,
"_integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=",
"_location": "/babel-preset-env/regjsparser",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "regjsparser@0.1.5",
"name": "regjsparser",
"escapedName": "regjsparser",
"rawSpec": "0.1.5",
"saveSpec": null,
"fetchSpec": "0.1.5"
},
"_requiredBy": [
"/babel-preset-env/regexpu-core"
],
"_resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz",
"_spec": "0.1.5",
"_where": "C:\\Users\\deranjer\\GoglandProjects\\torrent-project\\torrent-project",
"author": {
"name": "'Julian Viereck'",
"email": "julian.viereck@gmail.com"
},
"bin": {
"regjsparser": "bin/parser"
},
"bugs": {
"url": "https://github.com/jviereck/regjsparser/issues"
},
"dependencies": {
"jsesc": "~0.5.0"
},
"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"
}

File diff suppressed because one or more lines are too long