Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homunculus

Package Overview
Dependencies
Maintainers
2
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homunculus - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

0

demo/Ai.js

@@ -0,0 +0,0 @@ (function() {

@@ -0,0 +0,0 @@ var gulp = require('gulp');

@@ -0,0 +0,0 @@ var Lexer = require('./src/lexer/Lexer');

2

package.json
{
"name": "homunculus",
"version": "0.1.0",
"version": "0.1.1",
"description": "A lexer&parser by Javascript",

@@ -5,0 +5,0 @@ "maintainers": [

@@ -0,0 +0,0 @@ # A lexer&parser by Javascript

@@ -0,0 +0,0 @@ var Lexer = require('./Lexer');

@@ -0,0 +0,0 @@ var Class = require('../util/Class');

@@ -0,0 +0,0 @@ var Match = require('./Match');

@@ -0,0 +0,0 @@ var Match = require('./Match');

@@ -0,0 +0,0 @@ var Match = require('./Match');

@@ -0,0 +0,0 @@ var Match = require('./Match');

@@ -0,0 +0,0 @@ var Class = require('../../util/Class');

@@ -0,0 +0,0 @@ var Match = require('./Match');

@@ -0,0 +0,0 @@ var Rule = require('./Rule');

@@ -0,0 +0,0 @@ var Rule = require('./Rule');

@@ -0,0 +0,0 @@ var Rule = require('./Rule');

@@ -0,0 +0,0 @@ var Rule = require('./Rule');

@@ -0,0 +0,0 @@ var Class = require('../../util/Class');

@@ -0,0 +0,0 @@ var Class = require('../util/Class');

@@ -0,0 +0,0 @@ var character = require('../../util/character');

@@ -0,0 +0,0 @@ var Class = require('../../util/Class');

@@ -0,0 +0,0 @@ var Class = require('../../util/Class');

@@ -0,0 +0,0 @@ var Class = require('../../util/Class');

@@ -0,0 +0,0 @@ var Class = require('../../util/Class');

@@ -0,0 +0,0 @@ var Class = require('../../util/Class');

@@ -0,0 +0,0 @@ exports.LINE = '\n';

@@ -0,0 +0,0 @@ function inheritPrototype(subType, superType) {

@@ -0,0 +0,0 @@ function quickSort(arr, begin, end, compare) {

@@ -1,2 +0,2 @@

var homunculus = require('../homunculus');
var homunculus = require('../');

@@ -3,0 +3,0 @@ var expect = require('expect.js');

@@ -1,2 +0,2 @@

var homunculus = require('../homunculus');
var homunculus = require('../');

@@ -3,0 +3,0 @@ var expect = require('expect.js');

@@ -1,2 +0,2 @@

var homunculus = require('../homunculus');
var homunculus = require('../');

@@ -40,2 +40,8 @@ var expect = require('expect.js');

});
it('string multiline without back_slash', function() {
var lexer = homunculus.getLexer('js');
expect(function() {
lexer.parse('"string\n"');
}).to.throwError();
});
it('id and sign in var stmt', function() {

@@ -124,2 +130,8 @@ var lexer = homunculus.getLexer('js');

});
it('multi line comment no end', function() {
var lexer = homunculus.getLexer('js');
expect(function() {
lexer.parse('/*cc');
}).to.throwError();
});
it('template', function() {

@@ -126,0 +138,0 @@ var lexer = homunculus.getLexer('js');

@@ -0,0 +0,0 @@ //javascript

@@ -0,0 +0,0 @@ ["//javascript",

@@ -0,0 +0,0 @@ // Simple JavaScript Templating

@@ -0,0 +0,0 @@ ["// Simple JavaScript Templating",

@@ -0,0 +0,0 @@ function f(test) {

@@ -0,0 +0,0 @@ ["function",

@@ -1,2 +0,2 @@

var homunculus = require('../homunculus');
var homunculus = require('../');

@@ -726,2 +726,18 @@ var expect = require('expect.js');

});
it('super in class', function() {
var parser = homunculus.getParser('js');
var node = parser.parse('class A extends B{constructor(){super()}}')
expect(tree(node)).to.eql([JsNode.PROGRAM,[JsNode.CLASSDECL,["class","A",JsNode.HERITAGE,["extends","B"],"{",JsNode.CLASSBODY,[JsNode.METHOD,["constructor","(",")","{",JsNode.FNBODY,[JsNode.SUPERSTMT,["super",JsNode.ARGS,["(",")"]]],"}"]],"}"]]]);
});
it('super recursion', function() {
var parser = homunculus.getParser('js');
var node = parser.parse('class A extends B{method(){super.super.a()}}');
expect(tree(node)).to.eql([JsNode.PROGRAM,[JsNode.CLASSDECL,["class","A",JsNode.HERITAGE,["extends","B"],"{",JsNode.CLASSBODY,[JsNode.METHOD,["method","(",")","{",JsNode.FNBODY,[JsNode.SUPERSTMT,["super",".","super",".","a",JsNode.ARGS,["(",")"]]],"}"]],"}"]]]);
});
it('super out class', function() {
var parser = homunculus.getParser('js');
expect(function() {
parser.parse('super()');
}).to.throwError();
});
it('set', function() {

@@ -728,0 +744,0 @@ var parser = homunculus.getParser('js');

@@ -0,0 +0,0 @@ // Backbone.js 1.1.0

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@

@@ -0,0 +0,0 @@ /*!

@@ -0,0 +0,0 @@ /*! HTML5 Shiv v3.6.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */

@@ -0,0 +0,0 @@ /*!

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

@@ -0,0 +0,0 @@ define(function(require, exports, module) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc