Skip to content

Commit

Permalink
update to BSD3 license
Browse files Browse the repository at this point in the history
  • Loading branch information
ichiriac committed Dec 24, 2014
1 parent 2a93e58 commit 7c23d6a
Show file tree
Hide file tree
Showing 28 changed files with 137 additions and 494 deletions.
366 changes: 27 additions & 339 deletions LICENSE

Large diffs are not rendered by default.

21 changes: 2 additions & 19 deletions bin/build.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,11 @@
#!/usr/bin/env node

/**
* Glayzzle : the PHP engine on NodeJS
*
* Copyright (C) 2014 Glayzzle
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
* @license GNU-2
*/


// requiring libs
var util = require('util');
var jison = require('jison');
Expand Down
5 changes: 2 additions & 3 deletions bin/formats/ast.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/**
* Glayzzle : PHP on NodeJS
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
* @author Ioan CHIRIAC
* @license BSD-3-Clause
*/
var fs = require('fs');
var util = require('util');
Expand Down
5 changes: 5 additions & 0 deletions bin/formats/cmd.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
*/
var child_process = require('child_process');
var fs = require('fs');

Expand Down
6 changes: 2 additions & 4 deletions bin/formats/parser.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Glayzzle : PHP on NodeJS
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
* @author Ioan CHIRIAC
* @license BSD-3-Clause
*/

var util = require('util');

module.exports = {
Expand Down
5 changes: 2 additions & 3 deletions bin/formats/php.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/**
* Glayzzle : PHP on NodeJS
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
* @author Ioan CHIRIAC
* @license BSD-3-Clause
*/
module.exports = {
handles: function(filename, ext) {
Expand Down
5 changes: 2 additions & 3 deletions bin/formats/phpt.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/**
* Glayzzle : PHP on NodeJS
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
* @author Ioan CHIRIAC
* @license BSD-3-Clause
*/
var util = require('util');
module.exports = {
Expand Down
5 changes: 2 additions & 3 deletions bin/formats/token.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/**
* Glayzzle : PHP on NodeJS
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
* @author Ioan CHIRIAC
* @license BSD-3-Clause
*/
var fs = require('fs');
var cmd = require('./cmd');
Expand Down
6 changes: 6 additions & 0 deletions bin/formats/token.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<?php

/**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
*/
$tokens = token_get_all(
file_get_contents($argv[1])
);
Expand Down
20 changes: 2 additions & 18 deletions bin/test.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,9 @@
#!/usr/bin/env node

/**
* Glayzzle : the PHP engine on NodeJS
*
* Copyright (C) 2014 Glayzzle
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
* @license GNU-2
*/

var util = require('util');
Expand Down
21 changes: 2 additions & 19 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
/**
* Glayzzle : the PHP engine on NodeJS
*
* Copyright (C) 2014 Glayzzle
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
* @license GNU-2
*/

var engine = {
// parsing helper
parse: function(buffer) {
Expand Down
21 changes: 2 additions & 19 deletions src/lexer.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
/**
* Glayzzle : the PHP engine on NodeJS
*
* Copyright (C) 2014 Glayzzle
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
* @license GNU-2
*/


var T_HALT_COMPILER = 101,
T_USE = 102,
T_ENCAPSED_AND_WHITESPACE = 103,
Expand Down
21 changes: 2 additions & 19 deletions src/lexer/license.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
/**
* Glayzzle : the PHP engine on NodeJS
*
* Copyright (C) 2014 Glayzzle
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
* @license GNU-2
*/

20 changes: 2 additions & 18 deletions src/parser.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
/**
* Glayzzle : the PHP engine on NodeJS
*
* Copyright (C) 2014 Glayzzle
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
* @license GNU-2
*/

var fs = require('fs');
Expand Down
6 changes: 6 additions & 0 deletions src/parser/array.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
*/

module.exports = function(api, tokens, EOF) {
return {
/**
Expand Down
6 changes: 6 additions & 0 deletions src/parser/class.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
*/

module.exports = function(api, tokens, EOF) {
return {
/**
Expand Down
6 changes: 6 additions & 0 deletions src/parser/expr.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
*/

module.exports = function(api, tokens, EOF) {
return {

Expand Down
6 changes: 6 additions & 0 deletions src/parser/function.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
*/

module.exports = function(api, tokens, EOF) {
return {
/**
Expand Down
6 changes: 6 additions & 0 deletions src/parser/if.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
*/

module.exports = function(api, tokens, EOF) {
return {
/**
Expand Down
6 changes: 6 additions & 0 deletions src/parser/loops.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
*/

module.exports = function(api, tokens, EOF) {
return {
read_while: function() {
Expand Down
6 changes: 6 additions & 0 deletions src/parser/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
*/

module.exports = function(api, tokens, EOF) {
return {
/**
Expand Down
6 changes: 6 additions & 0 deletions src/parser/namespace.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
*/

module.exports = function(api, tokens, EOF) {
return {
/**
Expand Down
6 changes: 6 additions & 0 deletions src/parser/scalar.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
*/

module.exports = function(api, tokens, EOF) {
return {
/**
Expand Down
14 changes: 6 additions & 8 deletions src/parser/statement.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
*/
module.exports = function(api, tokens, EOF) {
return {
/**
Expand Down Expand Up @@ -93,14 +98,7 @@ module.exports = function(api, tokens, EOF) {
* </ebnf>
*/
,read_inner_statement: function() {
switch(this.token) {
case '{':
return this.read_code_block(false);
case tokens.T_IF:
return this.read_if();
default:
return this.read_token();
}
return this.read_statement();
}
/**
* Reads statements
Expand Down
5 changes: 5 additions & 0 deletions src/parser/switch.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
*/
module.exports = function(api, tokens, EOF) {
return {
/**
Expand Down
5 changes: 5 additions & 0 deletions src/parser/try.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
*/
module.exports = function(api, tokens, EOF) {
return {
/**
Expand Down
5 changes: 5 additions & 0 deletions src/parser/variable.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/glayzzle-parser/graphs/contributors
* @url http://glayzzle.com
*/
module.exports = function(api, tokens, EOF) {
return {
/**
Expand Down
Loading

0 comments on commit 7c23d6a

Please sign in to comment.