From 84af688052e9b53fed2cb9f67fa3cd5bbfd5f937 Mon Sep 17 00:00:00 2001 From: "Jurgen J. Vinju" Date: Mon, 18 Sep 2023 12:03:30 +0200 Subject: [PATCH 1/6] making php-analysis ready for tutor publication --- CITATION.md | 202 +++++++++++++++++++++++++++++++++++++++++++++++ FUNDING | 2 + LICENSE | 11 +++ pom.xml | 64 ++++++++++++++- rascal_style.xml | 11 +++ 5 files changed, 289 insertions(+), 1 deletion(-) create mode 100644 CITATION.md create mode 100644 FUNDING create mode 100644 LICENSE create mode 100644 rascal_style.xml diff --git a/CITATION.md b/CITATION.md new file mode 100644 index 0000000..f604c07 --- /dev/null +++ b/CITATION.md @@ -0,0 +1,202 @@ +This is software will be directly citable via Zenodo soon. However, these are relavant publications +that you can cite in the mean time: + +```bibtex +@article{DBLP:journals/scp/HillsKV17, + author = {Mark Hills and + Paul Klint and + Jurgen J. Vinju}, + title = {Enabling {PHP} software engineering research in Rascal}, + journal = {Sci. Comput. Program.}, + volume = {134}, + pages = {37--46}, + year = {2017}, + url = {https://doi.org/10.1016/j.scico.2016.05.003}, + doi = {10.1016/j.scico.2016.05.003}, + timestamp = {Wed, 14 Jun 2017 20:29:38 +0200}, + biburl = {https://dblp.org/rec/journals/scp/HillsKV17.bib}, + bibsource = {dblp computer science bibliography, https://dblp.org} +} +``` + +```bibtex +@inproceedings{DBLP:conf/scam/Anderson017, + author = {David Anderson and + Mark Hills}, + title = {Supporting Analysis of {SQL} Queries in {PHP} AiR}, + booktitle = {17th {IEEE} International Working Conference on Source Code Analysis + and Manipulation, {SCAM} 2017, Shanghai, China, September 17-18, 2017}, + pages = {153--158}, + publisher = {{IEEE} Computer Society}, + year = {2017}, + url = {https://doi.org/10.1109/SCAM.2017.23}, + doi = {10.1109/SCAM.2017.23}, + timestamp = {Fri, 24 Mar 2023 00:02:43 +0100}, + biburl = {https://dblp.org/rec/conf/scam/Anderson017.bib}, + bibsource = {dblp computer science bibliography, https://dblp.org} +} +``` + +```bibtex +@inproceedings{DBLP:conf/wcre/AndersonH17, + author = {David Anderson and + Mark Hills}, + editor = {Martin Pinzger and + Gabriele Bavota and + Andrian Marcus}, + title = {Query Construction Patterns in {PHP}}, + booktitle = {{IEEE} 24th International Conference on Software Analysis, Evolution + and Reengineering, {SANER} 2017, Klagenfurt, Austria, February 20-24, + 2017}, + pages = {452--456}, + publisher = {{IEEE} Computer Society}, + year = {2017}, + url = {https://doi.org/10.1109/SANER.2017.7884652}, + doi = {10.1109/SANER.2017.7884652}, + timestamp = {Fri, 24 Mar 2023 00:04:44 +0100}, + biburl = {https://dblp.org/rec/conf/wcre/AndersonH17.bib}, + bibsource = {dblp computer science bibliography, https://dblp.org} +} +``` + +```bibtex +@inproceedings{DBLP:conf/iwpc/Hills16, + author = {Mark Hills}, + title = {Navigating the WordPress plugin landscape}, + booktitle = {24th {IEEE} International Conference on Program Comprehension, {ICPC} + 2016, Austin, TX, USA, May 16-17, 2016}, + pages = {1--10}, + publisher = {{IEEE} Computer Society}, + year = {2016}, + url = {https://doi.org/10.1109/ICPC.2016.7503709}, + doi = {10.1109/ICPC.2016.7503709}, + timestamp = {Thu, 23 Mar 2023 23:57:51 +0100}, + biburl = {https://dblp.org/rec/conf/iwpc/Hills16.bib}, + bibsource = {dblp computer science bibliography, https://dblp.org} +} +``` + +```bibtex +@inproceedings{DBLP:conf/kbse/Hills15, + author = {Mark Hills}, + editor = {Myra B. Cohen and + Lars Grunske and + Michael Whalen}, + title = {Variable Feature Usage Patterns in {PHP} {(T)}}, + booktitle = {30th {IEEE/ACM} International Conference on Automated Software Engineering, + {ASE} 2015, Lincoln, NE, USA, November 9-13, 2015}, + pages = {563--573}, + publisher = {{IEEE} Computer Society}, + year = {2015}, + url = {https://doi.org/10.1109/ASE.2015.72}, + doi = {10.1109/ASE.2015.72}, + timestamp = {Fri, 24 Mar 2023 00:02:37 +0100}, + biburl = {https://dblp.org/rec/conf/kbse/Hills15.bib}, + bibsource = {dblp computer science bibliography, https://dblp.org} +} +``` + +```bibtex +@inproceedings{DBLP:conf/oopsla/Hills15, + author = {Mark Hills}, + editor = {Harry Xu and + Walter Binder}, + title = {Supporting {PHP} dynamic analysis in {PHP} AiR}, + booktitle = {Proceedings of the 13th International Workshop on Dynamic Analysis, + WODA@SPLASH 2015, Pittsburgh, PA, USA, October 26, 2015}, + pages = {37--38}, + publisher = {{ACM}}, + year = {2015}, + url = {https://doi.org/10.1145/2823363.2823373}, + doi = {10.1145/2823363.2823373}, + timestamp = {Fri, 14 Apr 2023 23:05:46 +0200}, + biburl = {https://dblp.org/rec/conf/oopsla/Hills15.bib}, + bibsource = {dblp computer science bibliography, https://dblp.org} +} +``` + +```bibtex +@inproceedings{DBLP:conf/wcre/000115, + author = {Mark Hills}, + editor = {Yann{-}Ga{\"{e}}l Gu{\'{e}}h{\'{e}}neuc and + Bram Adams and + Alexander Serebrenik}, + title = {Evolution of dynamic feature usage in {PHP}}, + booktitle = {22nd {IEEE} International Conference on Software Analysis, Evolution, + and Reengineering, {SANER} 2015, Montreal, QC, Canada, March 2-6, + 2015}, + pages = {525--529}, + publisher = {{IEEE} Computer Society}, + year = {2015}, + url = {https://doi.org/10.1109/SANER.2015.7081870}, + doi = {10.1109/SANER.2015.7081870}, + timestamp = {Fri, 24 Mar 2023 00:04:45 +0100}, + biburl = {https://dblp.org/rec/conf/wcre/000115.bib}, + bibsource = {dblp computer science bibliography, https://dblp.org} +} +``` + +```bibtex +@inproceedings{DBLP:conf/csmr/HillsK14, + author = {Mark Hills and + Paul Klint}, + editor = {Serge Demeyer and + Dave W. Binkley and + Filippo Ricca}, + title = {{PHP} AiR: Analyzing {PHP} systems with Rascal}, + booktitle = {2014 Software Evolution Week - {IEEE} Conference on Software Maintenance, + Reengineering, and Reverse Engineering, {CSMR-WCRE} 2014, Antwerp, + Belgium, February 3-6, 2014}, + pages = {454--457}, + publisher = {{IEEE} Computer Society}, + year = {2014}, + url = {https://doi.org/10.1109/CSMR-WCRE.2014.6747217}, + doi = {10.1109/CSMR-WCRE.2014.6747217}, + timestamp = {Fri, 24 Mar 2023 00:02:40 +0100}, + biburl = {https://dblp.org/rec/conf/csmr/HillsK14.bib}, + bibsource = {dblp computer science bibliography, https://dblp.org} +} +``` + +```bibtex +@inproceedings{DBLP:conf/kbse/HillsKV14, + author = {Mark Hills and + Paul Klint and + Jurgen J. Vinju}, + editor = {Ivica Crnkovic and + Marsha Chechik and + Paul Gr{\"{u}}nbacher}, + title = {Static, lightweight includes resolution for {PHP}}, + booktitle = {{ACM/IEEE} International Conference on Automated Software Engineering, + {ASE} '14, Vasteras, Sweden - September 15 - 19, 2014}, + pages = {503--514}, + publisher = {{ACM}}, + year = {2014}, + url = {https://doi.org/10.1145/2642937.2643017}, + doi = {10.1145/2642937.2643017}, + timestamp = {Tue, 06 Nov 2018 16:58:23 +0100}, + biburl = {https://dblp.org/rec/conf/kbse/HillsKV14.bib}, + bibsource = {dblp computer science bibliography, https://dblp.org} +} +``` + +```bibtex +@inproceedings{DBLP:conf/issta/HillsKV13, + author = {Mark Hills and + Paul Klint and + Jurgen J. Vinju}, + editor = {Mauro Pezz{\`{e}} and + Mark Harman}, + title = {An empirical study of {PHP} feature usage: a static analysis perspective}, + booktitle = {International Symposium on Software Testing and Analysis, {ISSTA} + '13, Lugano, Switzerland, July 15-20, 2013}, + pages = {325--335}, + publisher = {{ACM}}, + year = {2013}, + url = {https://doi.org/10.1145/2483760.2483786}, + doi = {10.1145/2483760.2483786}, + timestamp = {Sun, 02 Oct 2022 16:10:12 +0200}, + biburl = {https://dblp.org/rec/conf/issta/HillsKV13.bib}, + bibsource = {dblp computer science bibliography, https://dblp.org} +} +``` diff --git a/FUNDING b/FUNDING new file mode 100644 index 0000000..eaa0446 --- /dev/null +++ b/FUNDING @@ -0,0 +1,2 @@ +* NWO-I Centrum Wiskunde & Informatica (2013-...) +* Apalachean State University (2023-...) diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c8459cd --- /dev/null +++ b/LICENSE @@ -0,0 +1,11 @@ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. + diff --git a/pom.xml b/pom.xml index c3d70fe..1df0355 100644 --- a/pom.xml +++ b/pom.xml @@ -58,6 +58,46 @@ + + com.mycila + license-maven-plugin + + 4.1 + + + rascal_style.xml + + + +
../LICENSE.txt
+ + rascal_style.xml + **/README + src/test/resources/** + src/main/resources/** + **/*.tpl + META-INF/** + .editorconfig + CITATION + FUNDING + +
+
+ + SLASHSTAR_STYLE + RASCAL_STYLE + +
+ + + + check + + + +
org.apache.maven.plugins maven-compiler-plugin @@ -103,7 +143,29 @@ package - + + default-cli + compile + + tutor + + + true + false + ${project.build.outputDirectory} + ${project.basedir}/LICENSE + ${project.basedir}/CITATION.md + |http://github.com/cwi-swat/php-analysis/blob/main| + |http://github.com/cwi-swat/php-analysis/issues| + + ${project.basedir}/src + ${project.basedir}/doc + + + + + +
diff --git a/rascal_style.xml b/rascal_style.xml new file mode 100644 index 0000000..7672dcc --- /dev/null +++ b/rascal_style.xml @@ -0,0 +1,11 @@ + + + + @license{ + } + @license\{.*$ + \}$ + true + true + + From ec2ad1ee760de16804b0ec687ec5bebeba783d7f Mon Sep 17 00:00:00 2001 From: "Jurgen J. Vinju" Date: Mon, 18 Sep 2023 13:07:35 +0200 Subject: [PATCH 2/6] fixed lots of minor issues --- doc/PhpAnnotations.md | 8 +- doc/PhpConstraintOperations.md | 5 ++ doc/declarations.md | 6 ++ doc/number_of_duplicate_classes.md | 25 +++--- doc/php_type_constraint_operations.md | 27 +++---- doc/possible_type_constraints.md | 106 +++++++++++++------------- 6 files changed, 101 insertions(+), 76 deletions(-) diff --git a/doc/PhpAnnotations.md b/doc/PhpAnnotations.md index dcc1901..d656f83 100644 --- a/doc/PhpAnnotations.md +++ b/doc/PhpAnnotations.md @@ -1,3 +1,9 @@ +--- +title: PHP annotations +--- + +Here we document the PHP code annotations that are used and defined by different (static) analyses in this project. + Syntax of `@param` ``` @@ -34,4 +40,4 @@ Syntax of `@var` @var mixed $in @var \ClassObject $classObj @var \Namespace\ClassObject $classObj -``` \ No newline at end of file +``` diff --git a/doc/PhpConstraintOperations.md b/doc/PhpConstraintOperations.md index e69de29..4092af3 100644 --- a/doc/PhpConstraintOperations.md +++ b/doc/PhpConstraintOperations.md @@ -0,0 +1,5 @@ +--- +title: PHP Constraint Operations +--- + +(((TODO))) diff --git a/doc/declarations.md b/doc/declarations.md index 239ba72..22e8e22 100644 --- a/doc/declarations.md +++ b/doc/declarations.md @@ -1,3 +1,9 @@ +--- +title: Declarations +--- + +Here we document the qualified naming scheme for the locations we used. + * namespaces * `|php+namespace:///a/b|` for namespace `A\B` * `|php+namespace:///|` for global namespace diff --git a/doc/number_of_duplicate_classes.md b/doc/number_of_duplicate_classes.md index a3063bb..90fb76a 100644 --- a/doc/number_of_duplicate_classes.md +++ b/doc/number_of_duplicate_classes.md @@ -1,38 +1,41 @@ +--- +title: Example statistics +--- + +This is a very simple example report that PHP analysis can produce. + # Some stats ---- * Total number of class decls: 4021 * Unique class paths: 4021 (100%) * Unique class names: 3997 (99%) ---- * Total number of interfaces decls: 160 * Unique interfaces paths: 160 (100%) * Unique interfaces names: 156 (97%) ---- * Total number of trait decls: 0 * Unique trait paths: 0 (0%) * Unique trait names: 0 (0%) ---- * Total number of mixed decls: 4181 * Unique mixed paths: 4181 (100%) * Unique mixed names: 4152 (99%) -Type | Total | Unique Paths* | Unique Names* | Number of non unique: -- | - | - | - | - -class | 4021 | 4021 (100%) | 3997 (99%) | 24 -interface | 160 | 160 (100%) | 156 (97%) | 4 -trait | 0 | 0 (100%) | 0 (100%) | 0 -mixed | 4181 | 4181 (100%) | 4152 (99%) | 27 +| Type | Total | Unique Paths | Unique Names | Number of non unique | +| - | - | - | - | - | +| class | 4021 | 4021 (100%) | 3997 (99%) | 24 | +| interface | 160 | 160 (100%) | 156 (97%) | 4 | +| trait | 0 | 0 (100%) | 0 (100%) | 0 | +| mixed | 4181 | 4181 (100%) | 4152 (99%) | 27 | \* `Unique Paths` contain the namespace, `Unique Names` only the name of the class. List of duplicate class names: - +``` +``` diff --git a/doc/php_type_constraint_operations.md b/doc/php_type_constraint_operations.md index 84507b3..685625c 100644 --- a/doc/php_type_constraint_operations.md +++ b/doc/php_type_constraint_operations.md @@ -1,9 +1,10 @@ -# Php Type Constraint Operations +--- +title: PHP Type Constraint Operations +--- -Some examples: +Here we document some examples of the type inference constraints we extract from PHP code. - -**Assign operators (some sort of case)** +## Assign operators (some sort of case) ``` $a .= ... // $a is a String @@ -14,7 +15,7 @@ $x = (int) $y; // $x = Integer $x = 1; // $x = Integer ``` -**Method call** +## Method call ``` $a -> methodCall(); @@ -22,7 +23,7 @@ $a -> methodCall(); ``` -** Conditional statements ** +## Conditional statements ``` $a instanceOf "C" // is_a @@ -32,7 +33,7 @@ is_numeric($a) // $a is numeric is_bool($a) // $a is a boolean ``` -** Member addition ** +## Member addition ``` class Empty {} @@ -41,13 +42,13 @@ $e->newField = "value"; // newField is added echo $e->newField; // newField is used ``` -** Return types of methods and functions ** +## Return types of methods and functions ``` function f () { return true }; // return type of f is a boolean ``` -** Object instantiation ** +## Object instantiation ``` $x = new Obj; // $x = instance of class Obj @@ -63,7 +64,7 @@ getPersonId(new Person(), 1, 2, true); // correct getPersonId(); // incorrect ``` -** self/static/parent ** +## self/static/parent ** ``` self::methodCall(); // current class @@ -71,7 +72,7 @@ parent::methodCall(); // one of the parent classes static::methodCall(); // class of instantiation ``` -** Out of scope ** +## Out of scope ``` - Variable variables (resolve to everything) @@ -80,8 +81,8 @@ static::methodCall(); // class of instantiation ``` -** Other Notes ** +## Other Notes ``` non parsing scripts are ignored -``` \ No newline at end of file +``` diff --git a/doc/possible_type_constraints.md b/doc/possible_type_constraints.md index 3a95ba8..f5fc7e9 100644 --- a/doc/possible_type_constraints.md +++ b/doc/possible_type_constraints.md @@ -1,4 +1,8 @@ -##### Possible Type Constraints: +--- +title: Possible Type Constraints +--- + +This is design inspiration for the type inference algorithm. Declarations: @@ -10,7 +14,7 @@ There are differnt 'levels' of constraints. * On function/method level (what variables are used within the scope) * Between scopes (for method calls) -** Types: ** +## Types: * a variable `$a` has { t1, ..., tn } types. (within a certain scope) * assignement of variables: `$x = $y` (types of y = types of x) @@ -25,7 +29,7 @@ There are differnt 'levels' of constraints. #### Declarations -** Variable ** +## Variable * The type of a variable is the type of the disjunction of all occurances of the variable within a within the scope. * On scopes: @@ -34,20 +38,20 @@ There are differnt 'levels' of constraints. * method scope * exception for global key word, it is in the global scope AND in the function/method scope -** Constants ** +## Constants * Constant -** Interface ** +## Interface * Decl: name of the interface * Decl: extends (= subtype of ...) -** Trait ** +## Trait ?? out of scope ?? (not used alot, yet... can be added later) -** Class ** +## Class * Decl: name of the class (including namespace) * Decl: extends (= subtype of ...) @@ -55,31 +59,31 @@ There are differnt 'levels' of constraints. * Decl: has constructor * Decl: constructor minimum re quired fields -** Class Constant ** +## Class Constant * Decl: name of the constant * Decl: class of the constant * Decl: type of the constant (?) -** Class Property ** +## Class Property * Decl: name of the property * Decl: class of the property -** Class Methods (/function) ** +## Class Methods (/function) * Decl: name of the method * Decl: has parameter constraints (see below) * Decl: which class the method is in * The return type is the disjunction of the types of all return statements (or void/null when none provided) -** Function ** +## Function * Decl: name of the function (including namespace) * Decl: has parameter constraints (see below) * The return type is the disjunction of the types of all return statements (or void/null when none provided) -** Actual Parameter constraints ** +## Actual Parameter constraints * Decl: Minimum required params * Decl: type hints @@ -87,7 +91,7 @@ There are differnt 'levels' of constraints. #### Types -** Cast operators ** +## Cast operators Casts | Input | Output | Rascal | Notes --- | --- | --- | --- | --- @@ -110,7 +114,7 @@ There are differnt 'levels' of constraints. --- -** Rules for Negation operator: ** `-l` -> (double | int) +## Rules for Negation operator: `-l` -> (double | int) `l` | result --- | --- @@ -120,7 +124,7 @@ _ | integer --- -** Rules for Addition operator: ** `l + r` -> (array | double | int) +## Rules for Addition operator: `l + r` -> (array | double | int) `l` | `r` | result --- | --- | --- @@ -133,11 +137,11 @@ _ | _ | integer --- -** Rules for Subtraction operator: ** `l - r` -> (double | int) +## Rules for Subtraction operator: `l - r` -> (double | int) -** Rules for Multiplication operator: ** `l * r` -> ( double | int) +## Rules for Multiplication operator: `l * r` -> ( double | int) -** Rules for Division operator: ** `l / r` -> (double | int) +## Rules for Division operator: `l / r` -> (double | int) `l` | `r` | result --- | --- | --- @@ -149,7 +153,7 @@ _ | _ | integer --- -** Rules for Modulus operator: ** `l % r` -> (int) +## Rules for Modulus operator: `l % r` -> (int) `l` | `r` | result --- | --- | --- @@ -182,11 +186,11 @@ Code | typeOf(`$b`) | typeOf(`$a`) | Notes ### Bitwise Operators: -** Rules for Bitwise And operator: ** `$a & $b` +## Rules for Bitwise And operator: `$a & $b` -** Rules for Bitwise Or (inclusive or) operator: ** `$a | $b` +## Rules for Bitwise Or (inclusive or) operator: `$a | $b` -** Rules for Bitwise Or (exclusive or) operator: ** `$a ^ $b` +## Rules for Bitwise Or (exclusive or) operator: `$a ^ $b` typeOf(`$a`) | typeOf(`$b`) | Result | Notes --- | --- | --- | --- @@ -195,9 +199,9 @@ _ | _ | integer --- -** Rules for Bitwise Shift left operator: ** `$a << $b` +## Rules for Bitwise Shift left operator: `$a << $b` -** Rules for Bitwise Shift right operator: ** `$a >> $b` +## Rules for Bitwise Shift right operator: `$a >> $b` typeOf(`$a`) | typeOf(`$b`) | Result | Notes @@ -206,7 +210,7 @@ _ | _ | integer | always an integer --- -** Rules for Bitwise Not operator: ** `~$a` +## Rules for Bitwise Not operator: `~$a` typeOf(`$a`) | Result | Notes --- | --- | --- | --- @@ -218,23 +222,23 @@ _ | error ### Comparison Operators: -** Rules for Equal operator: ** `$a == $b` +## Rules for Equal operator: `$a == $b` -** Rules for Identical operator: ** `$a === $b` +## Rules for Identical operator: `$a === $b` -** Rules for Not equal operator: ** `$a != $b` +## Rules for Not equal operator: `$a != $b` -** Rules for Not equal operator: ** `$a <> $b` +## Rules for Not equal operator: `$a <> $b` -** Rules for Not identical operator: ** `$a !== $b` +## Rules for Not identical operator: `$a !== $b` -** Rules for Less then operator: ** `$a < $b` +## Rules for Less then operator: `$a < $b` -** Rules for Greater then operator: ** `$a > $b` +## Rules for Greater then operator: `$a > $b` -** Rules for Less or equal operator: ** `$a <= $b` +## Rules for Less or equal operator: `$a <= $b` -** Rules for Greater or equal operator: ** `$a >= $b` +## Rules for Greater or equal operator: `$a >= $b` typeOf(`$a`) | typeOf(`$b`) | Result | Notes --- | --- | --- | --- @@ -244,9 +248,9 @@ _ | _ | boolean | always a boolean ### Incrementing/Decrementing operators -** Rules for Pre-increment operator: ** `++$a` +## Rules for Pre-increment operator: `++$a` -** Rules for Post-increment operator: ** `$a++` +## Rules for Post-increment operator: `$a++` typeOf(`$a`) | Result | Notes --- | --- |--- @@ -255,9 +259,9 @@ null | integer _ | _ | other types do not change type --- -** Rules for Pre-decrement operator: ** `--$a` +## Rules for Pre-decrement operator: `--$a` -** Rules for Post-decrement operator: ** `$a--` +## Rules for Post-decrement operator: `$a--` typeOf(`$a`) | Result | Notes --- | --- | --- @@ -268,17 +272,17 @@ _ | _ | other types do not change type ### Logical Operators: -** Rules for And operator: ** `$a and $b` +## Rules for And operator: `$a and $b` -** Rules for Or operator: ** `$a or $b` +## Rules for Or operator: `$a or $b` -** Rules for Xor equal operator: ** `$a xor $b` +## Rules for Xor equal operator: `$a xor $b` -** Rules for Not equal operator: ** `!$a` +## Rules for Not equal operator: `!$a` -** Rules for And identical operator: ** `$a && $b` +## Rules for And identical operator: `$a && $b` -** Rules for Or then operator: ** `$a || $b` +## Rules for Or then operator: `$a || $b` typeOf(`$a`) | typeOf(`$b`) | Result | Notes --- | --- | --- | --- @@ -286,7 +290,7 @@ _ | _ | boolean | always a boolean --- -** assignments ** +## assignments ``` $b = $a // (sub)typeOf($b) is (sub)typeOf($a) @@ -294,7 +298,7 @@ $c = $b = $a; // (sub)typeOf($a) = (sub)typeOf($b) && (sub)typeOf($b) = (sub)typ ``` -** class instantiation ** +## class instantiation ``` $a = new A; // type of $a is class with name "A"; (FQN: Full Qualified Name) @@ -303,7 +307,7 @@ $a = new A(1); // type of $a is class with name "A"; (FQN: Full Qualified Name) // minimum required params = 0 OR 1; ``` -** Ternary operator (elvis) ** +## Ternary operator (elvis) ``` $a ? $b : $c // result of this whole expression is: typeOf($b) OR typeOf($c) @@ -311,11 +315,11 @@ $a ? $b : $c // result of this whole expression is: typeOf($b) OR typeOf($c) #### Other thoughts... -** Assumption ** +## Assumption I assume that the program is correct. But because it is hard to check if programs are fine in dynamic languagues this is a thread to validity. -** Other ** +## Other ?? Adding scope constraints?? @@ -339,7 +343,7 @@ Subtypes: > class A extends B {} ``` -** Note: ** add default classes, functions, variables and constants to the list of declarations +## Note: add default classes, functions, variables and constants to the list of declarations Symbols: @@ -362,7 +366,7 @@ $a->call($b) | typeOf(a) has method "call" OR magic method __call ``` -** Constraint Examples ** +## Constraint Examples ``` syntax below: From 45de38fe4e0f2dfe274949b3cad48bb97f1b9a90 Mon Sep 17 00:00:00 2001 From: "Jurgen J. Vinju" Date: Mon, 18 Sep 2023 13:19:29 +0200 Subject: [PATCH 3/6] added missing headers --- build.properties | 13 +++++++++++++ build.xml | 14 ++++++++++++++ pom.xml | 16 +++++++++++++++- src/main/rascal/lang/php/analysis/NamePaths.rsc | 15 ++++++++++----- .../lang/php/analysis/callgraph/SimpleCG.rsc | 12 ++++++++++++ .../rascal/lang/php/analysis/cfg/BasicBlocks.rsc | 15 ++++++++++----- .../rascal/lang/php/analysis/cfg/BuildCFG.rsc | 15 ++++++++++----- src/main/rascal/lang/php/analysis/cfg/CFG.rsc | 15 ++++++++++----- .../rascal/lang/php/analysis/cfg/FlowEdge.rsc | 14 +++++++++----- src/main/rascal/lang/php/analysis/cfg/Label.rsc | 14 +++++++++----- .../rascal/lang/php/analysis/cfg/LabelState.rsc | 14 +++++++++----- src/main/rascal/lang/php/analysis/cfg/Util.rsc | 12 ++++++++++++ .../rascal/lang/php/analysis/cfg/Visualize.rsc | 15 ++++++++++----- .../lang/php/analysis/cfg/samples/Cond001.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/Cond002.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/Cond003.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/Do001.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/For001.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/Foreach001.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/Foreach002.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/Foreach003.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/Goto001.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/Goto002.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/Goto003.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/Goto004.php | 12 ++++++++++++ .../php/analysis/cfg/samples/StraightLine001.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/Switch001.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/Ternary001.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/Ternary002.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/While001.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/While002.php | 12 ++++++++++++ .../lang/php/analysis/cfg/samples/While003.php | 12 ++++++++++++ .../evaluators/AlgebraicSimplification.rsc | 14 +++++++++----- .../php/analysis/evaluators/DefinedConstants.rsc | 15 ++++++++++----- .../php/analysis/evaluators/MagicConstants.rsc | 15 ++++++++++----- .../lang/php/analysis/evaluators/Simplify.rsc | 12 ++++++++++++ .../php/analysis/evaluators/SimulateCalls.rsc | 15 ++++++++++----- .../analysis/evaluators/calltests/strrchr.php | 12 ++++++++++++ .../php/analysis/evaluators/calltests/substr.php | 12 ++++++++++++ .../lang/php/analysis/includes/IncludeGraph.rsc | 15 ++++++++++----- .../lang/php/analysis/includes/IncludesInfo.rsc | 12 ++++++++++++ .../php/analysis/includes/LibraryIncludes.rsc | 12 ++++++++++++ .../lang/php/analysis/includes/MatchIncludes.rsc | 15 ++++++++++----- .../php/analysis/includes/NormalizeConstCase.rsc | 12 ++++++++++++ .../lang/php/analysis/includes/QuickResolve.rsc | 12 ++++++++++++ .../lang/php/analysis/includes/ScriptResolve.rsc | 15 ++++++++++----- .../lang/php/analysis/names/AnalysisNames.rsc | 12 ++++++++++++ .../lang/php/analysis/signatures/BuiltIns.rsc | 15 ++++++++++----- .../lang/php/analysis/signatures/Extract.rsc | 15 ++++++++++----- .../lang/php/analysis/signatures/Signatures.rsc | 15 ++++++++++----- .../lang/php/analysis/signatures/Summaries.rsc | 15 ++++++++++----- .../lang/php/analysis/slicing/BasicSlicer.rsc | 12 ++++++++++++ .../rascal/lang/php/analysis/usedef/UseDef.rsc | 12 ++++++++++++ src/main/rascal/lang/php/ast/AbstractSyntax.rsc | 12 ++++++++++++ src/main/rascal/lang/php/ast/NormalizeAST.rsc | 15 ++++++++++----- src/main/rascal/lang/php/ast/System.rsc | 12 ++++++++++++ src/main/rascal/lang/php/metrics/CC.rsc | 12 ++++++++++++ src/main/rascal/lang/php/pp/PrettyPrinter.rsc | 15 ++++++++++----- .../rascal/lang/php/semantics/abstract/PHP.rsc | 15 ++++++++++----- .../rascal/lang/php/semantics/concrete/PHP.rsc | 15 ++++++++++----- .../rascal/lang/php/semantics/concrete/Value.rsc | 15 ++++++++++----- .../lang/php/semantics/shared/StoreModel.rsc | 15 ++++++++++----- .../rascal/lang/php/semantics/shared/Value.rsc | 15 ++++++++++----- src/main/rascal/lang/php/stats/OOMetrics.rsc | 12 ++++++++++++ src/main/rascal/lang/php/stats/Overall.rsc | 12 ++++++++++++ src/main/rascal/lang/php/stats/PrepStats.rsc | 15 ++++++++++----- src/main/rascal/lang/php/stats/SLOC.rsc | 12 ++++++++++++ src/main/rascal/lang/php/stats/Stats.rsc | 15 ++++++++++----- src/main/rascal/lang/php/stats/Unfriendly.rsc | 12 ++++++++++++ src/main/rascal/lang/php/syntax/Names.rsc | 12 ++++++++++++ src/main/rascal/lang/php/types/Types.rsc | 15 ++++++++++----- src/main/rascal/lang/php/util/CLOC.rsc | 12 ++++++++++++ src/main/rascal/lang/php/util/Constants.rsc | 15 ++++++++++----- src/main/rascal/lang/php/util/Corpus.rsc | 15 ++++++++++----- src/main/rascal/lang/php/util/LocUtils.rsc | 15 ++++++++++----- src/main/rascal/lang/php/util/Option.rsc | 15 ++++++++++----- src/main/rascal/lang/php/util/RepoUtils.rsc | 12 ++++++++++++ src/main/rascal/lang/php/util/Utils.rsc | 15 ++++++++++----- src/test/rascal/lang/php/m3/Core.rsc | 12 ++++++++++++ .../rascal/lang/php/parser/DocBlockParser.rsc | 12 ++++++++++++ src/test/rascal/lang/php/pp/PrettyPrinter.rsc | 12 ++++++++++++ src/test/rascal/lang/php/util/Utils.rsc | 12 ++++++++++++ src/test/rascal/resources/class/Class.php | 12 ++++++++++++ .../rascal/resources/class/ClassAExtendsB.php | 12 ++++++++++++ .../resources/class/ClassAImplementsCD.php | 12 ++++++++++++ .../rascal/resources/class/ClassAbstract.php | 12 ++++++++++++ src/test/rascal/resources/class/ClassFinal.php | 12 ++++++++++++ .../rascal/resources/class/ClassPopulated.php | 12 ++++++++++++ .../experiments/mscse2014/array/array.php | 12 ++++++++++++ .../experiments/mscse2014/binaryOp/binaryOp.php | 12 ++++++++++++ .../experiments/mscse2014/casts/casts.php | 12 ++++++++++++ .../mscse2014/classConstant/classConstant.php | 12 ++++++++++++ .../mscse2014/classKeywords/classKeywords.php | 12 ++++++++++++ .../mscse2014/classMethod/classMethod.php | 12 ++++++++++++ .../mscse2014/classProperty/classProperty.php | 12 ++++++++++++ .../mscse2014/comparisonOp/comparisonOp.php | 12 ++++++++++++ .../controlStructures/controlStructures.php | 12 ++++++++++++ .../experiments/mscse2014/function/function.php | 12 ++++++++++++ .../mscse2014/logicalOp/logicalOp.php | 12 ++++++++++++ .../mscse2014/methodCall/methodCall.php | 12 ++++++++++++ .../methodCallStatic/methodCallStatic.php | 12 ++++++++++++ .../mscse2014/normalAssign/normalAssign.php | 12 ++++++++++++ .../experiments/mscse2014/opAssign/opAssign.php | 12 ++++++++++++ .../predefinedConstants/predefinedConstants.php | 12 ++++++++++++ .../predefinedVariables/predefinedVariables.php | 12 ++++++++++++ .../experiments/mscse2014/scalar/scalar.php | 12 ++++++++++++ .../experiments/mscse2014/ternary/ternary.php | 12 ++++++++++++ .../experiments/mscse2014/unaryOp/unaryOp.php | 12 ++++++++++++ .../experiments/mscse2014/variable/variable.php | 12 ++++++++++++ .../experiments/mscse2014/various/various.php | 12 ++++++++++++ src/test/rascal/resources/parser/test/a.php | 12 ++++++++++++ src/test/rascal/resources/parser/test/b.php | 12 ++++++++++++ .../rascal/resources/pp/class_Abstractclass.php | 12 ++++++++++++ .../resources/pp/class_Classdeclaration.php | 12 ++++++++++++ .../pp/class_Conditionalclassdefinition.php | 12 ++++++++++++ .../rascal/resources/pp/class_Finalclass.php | 12 ++++++++++++ src/test/rascal/resources/pp/class_Interface.php | 12 ++++++++++++ .../resources/pp/class_PHP4styledeclarations.php | 12 ++++++++++++ src/test/rascal/resources/pp/class_Traits.php | 12 ++++++++++++ .../resources/pp/expr_Arraydefinitions.php | 12 ++++++++++++ src/test/rascal/resources/pp/expr_Casts.php | 12 ++++++++++++ src/test/rascal/resources/pp/expr_Clone.php | 12 ++++++++++++ src/test/rascal/resources/pp/expr_Closures.php | 12 ++++++++++++ .../resources/pp/expr_Comparisonoperators.php | 12 ++++++++++++ .../resources/pp/expr_Errorsuppression.php | 12 ++++++++++++ src/test/rascal/resources/pp/expr_Exit.php | 12 ++++++++++++ .../rascal/resources/pp/expr_Includeandeval.php | 12 ++++++++++++ .../resources/pp/expr_Logicaloperators.php | 12 ++++++++++++ .../resources/pp/expr_Mathematicaloperators.php | 12 ++++++++++++ src/test/rascal/resources/pp/expr_New.php | 12 ++++++++++++ src/test/rascal/resources/pp/expr_Print.php | 12 ++++++++++++ .../rascal/resources/pp/expr_Shellexecution.php | 12 ++++++++++++ .../rascal/resources/pp/expr_Ternaryoperator.php | 12 ++++++++++++ .../resources/pp/expr_Variablesyntaxes.php | 12 ++++++++++++ .../resources/pp/expr_isset()andempty().php | 12 ++++++++++++ .../resources/pp/fetchAndCall_Arguments.php | 12 ++++++++++++ .../fetchAndCall_Array/stringdereferencing.php | 12 ++++++++++++ .../pp/fetchAndCall_Constantfetches.php | 12 ++++++++++++ .../resources/pp/fetchAndCall_Functioncalls.php | 12 ++++++++++++ .../fetchAndCall_Newexpressiondereferencing.php | 12 ++++++++++++ .../resources/pp/fetchAndCall_Objectaccess.php | 12 ++++++++++++ .../pp/fetchAndCall_Simplearrayaccess.php | 12 ++++++++++++ .../resources/pp/fetchAndCall_Staticcalls.php | 12 ++++++++++++ .../pp/fetchAndCall_Staticpropertyfetches.php | 12 ++++++++++++ .../function_Conditionalfunctiondefinition.php | 12 ++++++++++++ ...function_Defaultvalues(staticscalartests).php | 12 ++++++++++++ .../resources/pp/function_Returnandpassbyref.php | 12 ++++++++++++ .../pp/function_Specialfunctionvariables.php | 12 ++++++++++++ .../rascal/resources/pp/function_Typehints.php | 12 ++++++++++++ .../resources/pp/function_Variadicfunctions.php | 12 ++++++++++++ src/test/rascal/resources/pp/loop_Doloop.php | 12 ++++++++++++ .../rascal/resources/pp/loop_Foreachloop.php | 12 ++++++++++++ src/test/rascal/resources/pp/loop_Forloop.php | 12 ++++++++++++ src/test/rascal/resources/pp/loop_Whileloop.php | 12 ++++++++++++ .../resources/pp/namespace_Aliases(use).php | 12 ++++++++++++ .../resources/pp/namespace_Bracednamespaces.php | 12 ++++++++++++ .../pp/namespace_Differentnametypes.php | 12 ++++++++++++ .../pp/namespace_Semicolonstylenamespaces.php | 12 ++++++++++++ ...Somestatementsmayoccuroutsideofnamespaces.php | 12 ++++++++++++ .../pp/scalar_Constantstringsyntaxes.php | 12 ++++++++++++ .../pp/scalar_Differentfloatsyntaxes.php | 12 ++++++++++++ .../resources/pp/scalar_Encapsedstrings.php | 12 ++++++++++++ .../resources/pp/scalar_Magicconstants.php | 12 ++++++++++++ .../pp/scalar_Nowdocandheredocstrings.php | 12 ++++++++++++ .../pp/stmt_Blocklessstatementsforif/for/etc.php | 12 ++++++++++++ .../resources/pp/stmt_Controlflowstatements.php | 12 ++++++++++++ src/test/rascal/resources/pp/stmt_Declare.php | 12 ++++++++++++ src/test/rascal/resources/pp/stmt_Echo.php | 12 ++++++++++++ .../rascal/resources/pp/stmt_Globalconstants.php | 12 ++++++++++++ .../rascal/resources/pp/stmt_If/Elseif/Else.php | 12 ++++++++++++ src/test/rascal/resources/pp/stmt_InlineHTML.php | 12 ++++++++++++ src/test/rascal/resources/pp/stmt_Switch.php | 12 ++++++++++++ src/test/rascal/resources/pp/stmt_Try/catch.php | 12 ++++++++++++ src/test/rascal/resources/pp/stmt_Unset.php | 12 ++++++++++++ .../rascal/resources/pp/stmt___halt_compiler.php | 12 ++++++++++++ 175 files changed, 2034 insertions(+), 171 deletions(-) diff --git a/build.properties b/build.properties index 0e43fff..b77a166 100644 --- a/build.properties +++ b/build.properties @@ -1,3 +1,16 @@ +# +# Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +# +# 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +# + bin.includes = META-INF/,\ bin/ diff --git a/build.xml b/build.xml index a1a2e3c..dff746a 100644 --- a/build.xml +++ b/build.xml @@ -1,4 +1,18 @@ + 4.0.0 @@ -71,7 +85,7 @@ -
../LICENSE.txt
+
LICENSE
rascal_style.xml **/README diff --git a/src/main/rascal/lang/php/analysis/NamePaths.rsc b/src/main/rascal/lang/php/analysis/NamePaths.rsc index e41557c..3e63480 100644 --- a/src/main/rascal/lang/php/analysis/NamePaths.rsc +++ b/src/main/rascal/lang/php/analysis/NamePaths.rsc @@ -1,9 +1,14 @@ @license{ - Copyright (c) 2009-2014 CWI - All rights reserved. This program and the accompanying materials - are made available under the terms of the Eclipse Public License v1.0 - which accompanies this distribution, and is available at - http://www.eclipse.org/legal/epl-v10.html +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. } @contributor{Mark Hills - Mark.Hills@cwi.nl (CWI)} module lang::php::analysis::NamePaths diff --git a/src/main/rascal/lang/php/analysis/callgraph/SimpleCG.rsc b/src/main/rascal/lang/php/analysis/callgraph/SimpleCG.rsc index 27049bc..b91ba32 100644 --- a/src/main/rascal/lang/php/analysis/callgraph/SimpleCG.rsc +++ b/src/main/rascal/lang/php/analysis/callgraph/SimpleCG.rsc @@ -1,3 +1,15 @@ +@license{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +} module lang::php::analysis::callgraph::SimpleCG import lang::php::ast::AbstractSyntax; diff --git a/src/main/rascal/lang/php/analysis/cfg/BasicBlocks.rsc b/src/main/rascal/lang/php/analysis/cfg/BasicBlocks.rsc index 61e0b20..1a7958d 100644 --- a/src/main/rascal/lang/php/analysis/cfg/BasicBlocks.rsc +++ b/src/main/rascal/lang/php/analysis/cfg/BasicBlocks.rsc @@ -1,9 +1,14 @@ @license{ - Copyright (c) 2009-2014 CWI - All rights reserved. This program and the accompanying materials - are made available under the terms of the Eclipse Public License v1.0 - which accompanies this distribution, and is available at - http://www.eclipse.org/legal/epl-v10.html +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. } @contributor{Mark Hills - Mark.Hills@cwi.nl (CWI)} module lang::php::analysis::cfg::BasicBlocks diff --git a/src/main/rascal/lang/php/analysis/cfg/BuildCFG.rsc b/src/main/rascal/lang/php/analysis/cfg/BuildCFG.rsc index ea8ed89..2ebae93 100644 --- a/src/main/rascal/lang/php/analysis/cfg/BuildCFG.rsc +++ b/src/main/rascal/lang/php/analysis/cfg/BuildCFG.rsc @@ -1,9 +1,14 @@ @license{ - Copyright (c) 2009-2014 CWI - All rights reserved. This program and the accompanying materials - are made available under the terms of the Eclipse Public License v1.0 - which accompanies this distribution, and is available at - http://www.eclipse.org/legal/epl-v10.html +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. } @contributor{Mark Hills - Mark.Hills@cwi.nl (CWI)} module lang::php::analysis::cfg::BuildCFG diff --git a/src/main/rascal/lang/php/analysis/cfg/CFG.rsc b/src/main/rascal/lang/php/analysis/cfg/CFG.rsc index c2d86be..1ffa72d 100644 --- a/src/main/rascal/lang/php/analysis/cfg/CFG.rsc +++ b/src/main/rascal/lang/php/analysis/cfg/CFG.rsc @@ -1,9 +1,14 @@ @license{ - Copyright (c) 2009-2014 CWI - All rights reserved. This program and the accompanying materials - are made available under the terms of the Eclipse Public License v1.0 - which accompanies this distribution, and is available at - http://www.eclipse.org/legal/epl-v10.html +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. } @contributor{Mark Hills - Mark.Hills@cwi.nl (CWI)} module lang::php::analysis::cfg::CFG diff --git a/src/main/rascal/lang/php/analysis/cfg/FlowEdge.rsc b/src/main/rascal/lang/php/analysis/cfg/FlowEdge.rsc index 08b3100..6de7571 100644 --- a/src/main/rascal/lang/php/analysis/cfg/FlowEdge.rsc +++ b/src/main/rascal/lang/php/analysis/cfg/FlowEdge.rsc @@ -1,10 +1,14 @@ @license{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. - Copyright (c) 2009-2014 CWI - All rights reserved. This program and the accompanying materials - are made available under the terms of the Eclipse Public License v1.0 - which accompanies this distribution, and is available at - http://www.eclipse.org/legal/epl-v10.html +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. } @contributor{Mark Hills - Mark.Hills@cwi.nl (CWI)} module lang::php::analysis::cfg::FlowEdge diff --git a/src/main/rascal/lang/php/analysis/cfg/Label.rsc b/src/main/rascal/lang/php/analysis/cfg/Label.rsc index 63d8ed3..7c132ff 100644 --- a/src/main/rascal/lang/php/analysis/cfg/Label.rsc +++ b/src/main/rascal/lang/php/analysis/cfg/Label.rsc @@ -1,10 +1,14 @@ @license{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. - Copyright (c) 2009-2014 CWI - All rights reserved. This program and the accompanying materials - are made available under the terms of the Eclipse Public License v1.0 - which accompanies this distribution, and is available at - http://www.eclipse.org/legal/epl-v10.html +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. } @contributor{Mark Hills - Mark.Hills@cwi.nl (CWI)} module lang::php::analysis::cfg::Label diff --git a/src/main/rascal/lang/php/analysis/cfg/LabelState.rsc b/src/main/rascal/lang/php/analysis/cfg/LabelState.rsc index 1d8a4ab..87bab45 100644 --- a/src/main/rascal/lang/php/analysis/cfg/LabelState.rsc +++ b/src/main/rascal/lang/php/analysis/cfg/LabelState.rsc @@ -1,10 +1,14 @@ @license{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. - Copyright (c) 2009-2014 CWI - All rights reserved. This program and the accompanying materials - are made available under the terms of the Eclipse Public License v1.0 - which accompanies this distribution, and is available at - http://www.eclipse.org/legal/epl-v10.html +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. } @contributor{Mark Hills - Mark.Hills@cwi.nl (CWI)} module lang::php::analysis::cfg::LabelState diff --git a/src/main/rascal/lang/php/analysis/cfg/Util.rsc b/src/main/rascal/lang/php/analysis/cfg/Util.rsc index ef4bf98..44da448 100644 --- a/src/main/rascal/lang/php/analysis/cfg/Util.rsc +++ b/src/main/rascal/lang/php/analysis/cfg/Util.rsc @@ -1,3 +1,15 @@ +@license{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +} module lang::php::analysis::cfg::Util import lang::php::ast::AbstractSyntax; diff --git a/src/main/rascal/lang/php/analysis/cfg/Visualize.rsc b/src/main/rascal/lang/php/analysis/cfg/Visualize.rsc index 91cf1ff..2820c21 100644 --- a/src/main/rascal/lang/php/analysis/cfg/Visualize.rsc +++ b/src/main/rascal/lang/php/analysis/cfg/Visualize.rsc @@ -1,9 +1,14 @@ @license{ - Copyright (c) 2009-2013 CWI - All rights reserved. This program and the accompanying materials - are made available under the terms of the Eclipse Public License v1.0 - which accompanies this distribution, and is available at - http://www.eclipse.org/legal/epl-v10.html +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. } @contributor{Mark Hills - Mark.Hills@cwi.nl (CWI)} module lang::php::analysis::cfg::Visualize diff --git a/src/main/rascal/lang/php/analysis/cfg/samples/Cond001.php b/src/main/rascal/lang/php/analysis/cfg/samples/Cond001.php index d65fcd6..6934118 100644 --- a/src/main/rascal/lang/php/analysis/cfg/samples/Cond001.php +++ b/src/main/rascal/lang/php/analysis/cfg/samples/Cond001.php @@ -1,4 +1,16 @@ "one", 2 => "two", 3 => "three", 4 => "four", 5 => "five"); foreach($a as $id => $x) { echo "The current value at position " . $id . " is " . $x . "\n"; diff --git a/src/main/rascal/lang/php/analysis/cfg/samples/Foreach003.php b/src/main/rascal/lang/php/analysis/cfg/samples/Foreach003.php index 58cbafb..f892d55 100644 --- a/src/main/rascal/lang/php/analysis/cfg/samples/Foreach003.php +++ b/src/main/rascal/lang/php/analysis/cfg/samples/Foreach003.php @@ -1,4 +1,16 @@ "one", 2 => "two", 3 => "three", 4 => "four", 5 => "five"); foreach($a as $id => $x) { echo "The current value at position " . $id . " is " . $x . "\n"; diff --git a/src/main/rascal/lang/php/analysis/cfg/samples/Goto001.php b/src/main/rascal/lang/php/analysis/cfg/samples/Goto001.php index 15987e0..996dd10 100644 --- a/src/main/rascal/lang/php/analysis/cfg/samples/Goto001.php +++ b/src/main/rascal/lang/php/analysis/cfg/samples/Goto001.php @@ -1,4 +1,16 @@ \ No newline at end of file diff --git a/src/main/rascal/lang/php/analysis/cfg/samples/Switch001.php b/src/main/rascal/lang/php/analysis/cfg/samples/Switch001.php index 79b9275..43a5bc4 100644 --- a/src/main/rascal/lang/php/analysis/cfg/samples/Switch001.php +++ b/src/main/rascal/lang/php/analysis/cfg/samples/Switch001.php @@ -1,4 +1,16 @@ diff --git a/src/main/rascal/lang/php/analysis/cfg/samples/Ternary002.php b/src/main/rascal/lang/php/analysis/cfg/samples/Ternary002.php index 6362edc..227ce46 100644 --- a/src/main/rascal/lang/php/analysis/cfg/samples/Ternary002.php +++ b/src/main/rascal/lang/php/analysis/cfg/samples/Ternary002.php @@ -1,4 +1,16 @@ diff --git a/src/main/rascal/lang/php/analysis/cfg/samples/While001.php b/src/main/rascal/lang/php/analysis/cfg/samples/While001.php index fcb7d50..012700e 100644 --- a/src/main/rascal/lang/php/analysis/cfg/samples/While001.php +++ b/src/main/rascal/lang/php/analysis/cfg/samples/While001.php @@ -1,4 +1,16 @@ \ No newline at end of file diff --git a/src/main/rascal/lang/php/analysis/evaluators/calltests/substr.php b/src/main/rascal/lang/php/analysis/evaluators/calltests/substr.php index 832f058..c6d6771 100644 --- a/src/main/rascal/lang/php/analysis/evaluators/calltests/substr.php +++ b/src/main/rascal/lang/php/analysis/evaluators/calltests/substr.php @@ -1,4 +1,16 @@ [E] = array() || One of them not array: [E] <: floaty() $c - $d; // [$c] != array(), [$d] != array(), . diff --git a/src/test/rascal/resources/experiments/mscse2014/casts/casts.php b/src/test/rascal/resources/experiments/mscse2014/casts/casts.php index d84d894..dd43c12 100644 --- a/src/test/rascal/resources/experiments/mscse2014/casts/casts.php +++ b/src/test/rascal/resources/experiments/mscse2014/casts/casts.php @@ -1,4 +1,16 @@ $b; diff --git a/src/test/rascal/resources/pp/expr_Errorsuppression.php b/src/test/rascal/resources/pp/expr_Errorsuppression.php index 599779e..154b244 100644 --- a/src/test/rascal/resources/pp/expr_Errorsuppression.php +++ b/src/test/rascal/resources/pp/expr_Errorsuppression.php @@ -1,2 +1,14 @@ b; (new A)->b(); diff --git a/src/test/rascal/resources/pp/fetchAndCall_Objectaccess.php b/src/test/rascal/resources/pp/fetchAndCall_Objectaccess.php index 2634224..7aba08e 100644 --- a/src/test/rascal/resources/pp/fetchAndCall_Objectaccess.php +++ b/src/test/rascal/resources/pp/fetchAndCall_Objectaccess.php @@ -1,4 +1,16 @@ b; diff --git a/src/test/rascal/resources/pp/fetchAndCall_Simplearrayaccess.php b/src/test/rascal/resources/pp/fetchAndCall_Simplearrayaccess.php index e7c6a30..b4bbdb4 100644 --- a/src/test/rascal/resources/pp/fetchAndCall_Simplearrayaccess.php +++ b/src/test/rascal/resources/pp/fetchAndCall_Simplearrayaccess.php @@ -1,4 +1,16 @@ B"; diff --git a/src/test/rascal/resources/pp/scalar_Magicconstants.php b/src/test/rascal/resources/pp/scalar_Magicconstants.php index b942af3..95374ba 100644 --- a/src/test/rascal/resources/pp/scalar_Magicconstants.php +++ b/src/test/rascal/resources/pp/scalar_Magicconstants.php @@ -1,4 +1,16 @@ B diff --git a/src/test/rascal/resources/pp/stmt_Switch.php b/src/test/rascal/resources/pp/stmt_Switch.php index b2d5ed6..35e7c6b 100644 --- a/src/test/rascal/resources/pp/stmt_Switch.php +++ b/src/test/rascal/resources/pp/stmt_Switch.php @@ -1,4 +1,16 @@ Date: Mon, 18 Sep 2023 13:24:46 +0200 Subject: [PATCH 4/6] fixed SDF headers --- pom.xml | 2 ++ rascal_style.xml | 8 +++++++ src/main/rascal/lang/php/sdf/PHP4.sdf | 24 +++++++++++++++++++ src/main/rascal/lang/php/sdf/PHP4Test.sdf | 24 +++++++++++++++++++ src/main/rascal/lang/php/sdf/PHP5.sdf | 24 +++++++++++++++++++ src/main/rascal/lang/php/sdf/PHP5Test.sdf | 24 +++++++++++++++++++ .../sdf/languages/php/common/Expressions.sdf | 24 +++++++++++++++++++ .../languages/php/common/HiddenSemiColon.sdf | 24 +++++++++++++++++++ .../php/sdf/languages/php/common/Keywords.sdf | 24 +++++++++++++++++++ .../php/sdf/languages/php/common/Layout.sdf | 24 +++++++++++++++++++ .../php/sdf/languages/php/common/Literals.sdf | 24 +++++++++++++++++++ .../php/sdf/languages/php/common/Main.sdf | 24 +++++++++++++++++++ .../sdf/languages/php/common/Operators.sdf | 24 +++++++++++++++++++ .../sdf/languages/php/common/Statements.sdf | 24 +++++++++++++++++++ .../php/sdf/languages/php/common/Tags.sdf | 24 +++++++++++++++++++ .../literals/DoubleQuotedStringLiterals.sdf | 24 +++++++++++++++++++ .../php/common/literals/HeredocLiterals.sdf | 24 +++++++++++++++++++ .../php/common/literals/LiteralsMain.sdf | 24 +++++++++++++++++++ .../php/common/literals/NumberLiterals.sdf | 24 +++++++++++++++++++ .../literals/SingleQuotedStringLiterals.sdf | 24 +++++++++++++++++++ .../php/common/literals/StringLiteral.sdf | 24 +++++++++++++++++++ .../php/common/literals/VariableLiterals.sdf | 24 +++++++++++++++++++ .../sdf/languages/php/version4/Keywords4.sdf | 24 +++++++++++++++++++ .../php/sdf/languages/php/version4/Main4.sdf | 24 +++++++++++++++++++ .../languages/php/version4/Precedence4.sdf | 24 +++++++++++++++++++ .../languages/php/version4/Statements4.sdf | 24 +++++++++++++++++++ .../languages/php/version5/Expressions5.sdf | 24 +++++++++++++++++++ .../sdf/languages/php/version5/Keywords5.sdf | 24 +++++++++++++++++++ .../php/sdf/languages/php/version5/Main5.sdf | 24 +++++++++++++++++++ .../languages/php/version5/Precedence5.sdf | 24 +++++++++++++++++++ .../languages/php/version5/Statements5.sdf | 24 +++++++++++++++++++ .../version5/literals/VariableLiterals5.sdf | 24 +++++++++++++++++++ 32 files changed, 730 insertions(+) diff --git a/pom.xml b/pom.xml index b98cf7b..c161681 100644 --- a/pom.xml +++ b/pom.xml @@ -96,12 +96,14 @@ .editorconfig CITATION FUNDING + **/*.txt
SLASHSTAR_STYLE RASCAL_STYLE + SDF_STYLE diff --git a/rascal_style.xml b/rascal_style.xml index 7672dcc..8a41fcf 100644 --- a/rascal_style.xml +++ b/rascal_style.xml @@ -8,4 +8,12 @@ true true + + %% + %% + %%$ + %%$ + true + true + diff --git a/src/main/rascal/lang/php/sdf/PHP4.sdf b/src/main/rascal/lang/php/sdf/PHP4.sdf index f3b6ceb..5636988 100644 --- a/src/main/rascal/lang/php/sdf/PHP4.sdf +++ b/src/main/rascal/lang/php/sdf/PHP4.sdf @@ -1,3 +1,27 @@ +%% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% module PHP4 imports languages/php/version4/Main4 exports diff --git a/src/main/rascal/lang/php/sdf/PHP4Test.sdf b/src/main/rascal/lang/php/sdf/PHP4Test.sdf index 886d8e1..2ca8154 100644 --- a/src/main/rascal/lang/php/sdf/PHP4Test.sdf +++ b/src/main/rascal/lang/php/sdf/PHP4Test.sdf @@ -1,3 +1,27 @@ +%% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% module PHP4Test imports languages/php/version4/Main4 exports diff --git a/src/main/rascal/lang/php/sdf/PHP5.sdf b/src/main/rascal/lang/php/sdf/PHP5.sdf index 2b4db56..8b2aaa2 100644 --- a/src/main/rascal/lang/php/sdf/PHP5.sdf +++ b/src/main/rascal/lang/php/sdf/PHP5.sdf @@ -1,3 +1,27 @@ +%% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% module PHP5 imports languages/php/version5/Main5 exports diff --git a/src/main/rascal/lang/php/sdf/PHP5Test.sdf b/src/main/rascal/lang/php/sdf/PHP5Test.sdf index 7e0882c..2dd3b9f 100644 --- a/src/main/rascal/lang/php/sdf/PHP5Test.sdf +++ b/src/main/rascal/lang/php/sdf/PHP5Test.sdf @@ -1,3 +1,27 @@ +%% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% module PHP5Test imports languages/php/version5/Main5 exports diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Expressions.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Expressions.sdf index e9f2f88..f279073 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Expressions.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Expressions.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Module containing the expression used in both PHP4 ans PHP5 %% %% @author Eric Bouwers diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/HiddenSemiColon.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/HiddenSemiColon.sdf index 5513dd1..a51ebbc 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/HiddenSemiColon.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/HiddenSemiColon.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% PHP's lexer silently inserts a ";" token when it encounters a %% "?>" close tag. Simulate this as best as we can, by interpreting %% an empty production as a semicolon IF it is followed by a "?>". diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Keywords.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Keywords.sdf index a876ed0..4f3a928 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Keywords.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Keywords.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% All keywords belonging to both PHP4 and PHP5 %% %% @author Eric Bouwers diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Layout.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Layout.sdf index 301549d..c0e2f0a 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Layout.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Layout.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Module containing layout, from java-front definition %% %% @author Martin Bravenboer diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Literals.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Literals.sdf index de3d7a1..b05ed0f 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Literals.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Literals.sdf @@ -1,3 +1,27 @@ +%% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Dummy module to include all literals module languages/php/common/Literals imports languages/php/common/literals/LiteralsMain diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Main.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Main.sdf index c54ba9b..e0ed31f 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Main.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Main.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% There are two kind of documents: %% 1) Document with PHP possible surrounded by HTML %% This document has an optional end-tag. The reason why diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Operators.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Operators.sdf index 18c6e12..9ac3e89 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Operators.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Operators.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Module with operators shared by PHP4 and PHP5. %% %% @author Eric Bouwers diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Statements.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Statements.sdf index e889aee..2557410 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Statements.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Statements.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Module containing all statements shared by both PHP4 and PHP5. %% %% @author Eric Bouwers diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Tags.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Tags.sdf index 86835dd..bc1a7fa 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Tags.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Tags.sdf @@ -1,3 +1,27 @@ +%% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% module languages/php/common/Tags exports %% Introduces the tags for PHP. It also defines the characters surrounding open diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/literals/DoubleQuotedStringLiterals.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/literals/DoubleQuotedStringLiterals.sdf index 28ea00f..f86d3ec 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/literals/DoubleQuotedStringLiterals.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/literals/DoubleQuotedStringLiterals.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Double quoted string literals are more difficult to parse because there are certian %% escapes that should be performed. In order to mimick this, a double wuoted string is %% parsed as a list of things that can be in a doublequoted string. These things are diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/literals/HeredocLiterals.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/literals/HeredocLiterals.sdf index f9e2ed9..49fe153 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/literals/HeredocLiterals.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/literals/HeredocLiterals.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Heredoc string literal. A start- and an end-label with a literal string %% in between. The start- and end-label should match. This is not checked %% because that can not be done this way. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/literals/LiteralsMain.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/literals/LiteralsMain.sdf index f9699b2..3d6fa60 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/literals/LiteralsMain.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/literals/LiteralsMain.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Main module which imports the different literals %% %% @author Eric Bouwers diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/literals/NumberLiterals.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/literals/NumberLiterals.sdf index 78066d0..eebaafc 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/literals/NumberLiterals.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/literals/NumberLiterals.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Integers are named DNumber. Floats are named LNumber. %% Automatic conversion from Int to float when the Integer is to %% big should happen on application detail. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/literals/SingleQuotedStringLiterals.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/literals/SingleQuotedStringLiterals.sdf index 4682b03..43a5afc 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/literals/SingleQuotedStringLiterals.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/literals/SingleQuotedStringLiterals.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Singlequoted literals are defined in the same way as Doublequoted literals. %% See DoubleQuotedStringLiterals for more details. The difference is that %% Singlequoted strings have only one escape, the '. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/literals/StringLiteral.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/literals/StringLiteral.sdf index fc76b11..2457953 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/literals/StringLiteral.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/literals/StringLiteral.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% The language parser uses T_STRING for label names. %% Non-terminal String is used as an equivalent for this token %% diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/literals/VariableLiterals.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/literals/VariableLiterals.sdf index b6e42dc..32b85a5 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/literals/VariableLiterals.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/literals/VariableLiterals.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Definition of different variables used within PHP and %% the way to access them. %% diff --git a/src/main/rascal/lang/php/sdf/languages/php/version4/Keywords4.sdf b/src/main/rascal/lang/php/sdf/languages/php/version4/Keywords4.sdf index 3ce6373..ef8fb18 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version4/Keywords4.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version4/Keywords4.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Keywords specific for version 4. %% %% @author Eric Bouwers diff --git a/src/main/rascal/lang/php/sdf/languages/php/version4/Main4.sdf b/src/main/rascal/lang/php/sdf/languages/php/version4/Main4.sdf index 4229278..7287e07 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version4/Main4.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version4/Main4.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Imports all of the modules for version 4. %% %% @author Eric Bouwers diff --git a/src/main/rascal/lang/php/sdf/languages/php/version4/Precedence4.sdf b/src/main/rascal/lang/php/sdf/languages/php/version4/Precedence4.sdf index ea6f80b..7acefb3 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version4/Precedence4.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version4/Precedence4.sdf @@ -1,3 +1,27 @@ +%% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% module languages/php/version4/Precedence4 imports languages/php/common/Expressions diff --git a/src/main/rascal/lang/php/sdf/languages/php/version4/Statements4.sdf b/src/main/rascal/lang/php/sdf/languages/php/version4/Statements4.sdf index 32b3c49..9c1dea7 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version4/Statements4.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version4/Statements4.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Statements specific for version 4. %% This includes the syntax for a class decleration %% and definition of an old_function. diff --git a/src/main/rascal/lang/php/sdf/languages/php/version5/Expressions5.sdf b/src/main/rascal/lang/php/sdf/languages/php/version5/Expressions5.sdf index aefdd63..ff94d2f 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version5/Expressions5.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version5/Expressions5.sdf @@ -1,3 +1,27 @@ +%% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %%% %% Module with expressions introduced in version 5 %% diff --git a/src/main/rascal/lang/php/sdf/languages/php/version5/Keywords5.sdf b/src/main/rascal/lang/php/sdf/languages/php/version5/Keywords5.sdf index 7ceee70..74eee5e 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version5/Keywords5.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version5/Keywords5.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Module with keywords introduced in version 5. %% %% @author Eric Bouwers diff --git a/src/main/rascal/lang/php/sdf/languages/php/version5/Main5.sdf b/src/main/rascal/lang/php/sdf/languages/php/version5/Main5.sdf index 291e258..039460e 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version5/Main5.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version5/Main5.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Main module importing all modules for version 5 %% %% @author Eric Bouwers diff --git a/src/main/rascal/lang/php/sdf/languages/php/version5/Precedence5.sdf b/src/main/rascal/lang/php/sdf/languages/php/version5/Precedence5.sdf index af017f5..8f8cc3d 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version5/Precedence5.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version5/Precedence5.sdf @@ -1,3 +1,27 @@ +%% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% module languages/php/version5/Precedence5 imports languages/php/common/Expressions diff --git a/src/main/rascal/lang/php/sdf/languages/php/version5/Statements5.sdf b/src/main/rascal/lang/php/sdf/languages/php/version5/Statements5.sdf index ea5bd8d..712c5f3 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version5/Statements5.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version5/Statements5.sdf @@ -1,4 +1,28 @@ %% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%% %% Module with statements introduced in version 5 %% %% @author Eric Bouwers diff --git a/src/main/rascal/lang/php/sdf/languages/php/version5/literals/VariableLiterals5.sdf b/src/main/rascal/lang/php/sdf/languages/php/version5/literals/VariableLiterals5.sdf index 8c55178..506bdc4 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version5/literals/VariableLiterals5.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version5/literals/VariableLiterals5.sdf @@ -1,3 +1,27 @@ +%% +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% +%%{ +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% module languages/php/version5/literals/VariableLiterals5 exports From 933fc1138aced6db4b449d69a0ca8b1feb0fd3b4 Mon Sep 17 00:00:00 2001 From: "Jurgen J. Vinju" Date: Mon, 18 Sep 2023 13:33:18 +0200 Subject: [PATCH 5/6] fixed headers in phppp files --- pom.xml | 1 + rascal_style.xml | 18 ++++++++++--- src/main/rascal/lang/php/sdf/PHP4.sdf | 12 +++++++++ src/main/rascal/lang/php/sdf/PHP4Test.sdf | 12 +++++++++ src/main/rascal/lang/php/sdf/PHP5.sdf | 12 +++++++++ src/main/rascal/lang/php/sdf/PHP5Test.sdf | 12 +++++++++ .../sdf/languages/php/common/Expressions.sdf | 12 +++++++++ .../languages/php/common/HiddenSemiColon.sdf | 12 +++++++++ .../php/sdf/languages/php/common/Keywords.sdf | 12 +++++++++ .../php/sdf/languages/php/common/Layout.sdf | 12 +++++++++ .../php/sdf/languages/php/common/Literals.sdf | 12 +++++++++ .../php/sdf/languages/php/common/Main.sdf | 12 +++++++++ .../sdf/languages/php/common/Operators.sdf | 12 +++++++++ .../sdf/languages/php/common/Statements.sdf | 12 +++++++++ .../php/sdf/languages/php/common/Tags.sdf | 12 +++++++++ .../literals/DoubleQuotedStringLiterals.sdf | 12 +++++++++ .../php/common/literals/HeredocLiterals.sdf | 12 +++++++++ .../php/common/literals/LiteralsMain.sdf | 12 +++++++++ .../php/common/literals/NumberLiterals.sdf | 12 +++++++++ .../literals/SingleQuotedStringLiterals.sdf | 12 +++++++++ .../php/common/literals/StringLiteral.sdf | 12 +++++++++ .../php/common/literals/VariableLiterals.sdf | 12 +++++++++ .../sdf/languages/php/version4/Keywords4.sdf | 12 +++++++++ .../php/sdf/languages/php/version4/Main4.sdf | 12 +++++++++ .../languages/php/version4/Precedence4.sdf | 12 +++++++++ .../languages/php/version4/Statements4.sdf | 12 +++++++++ .../languages/php/version5/Expressions5.sdf | 12 +++++++++ .../sdf/languages/php/version5/Keywords5.sdf | 12 +++++++++ .../php/sdf/languages/php/version5/Main5.sdf | 12 +++++++++ .../languages/php/version5/Precedence5.sdf | 12 +++++++++ .../languages/php/version5/Statements5.sdf | 12 +++++++++ .../version5/literals/VariableLiterals5.sdf | 12 +++++++++ .../resources/pp/class_Abstractclass.phppp | 24 ++++++++++++++++++ .../resources/pp/class_Classdeclaration.phppp | 24 ++++++++++++++++++ .../pp/class_Conditionalclassdefinition.phppp | 24 ++++++++++++++++++ .../resources/pp/class_Finalclass.phppp | 24 ++++++++++++++++++ .../rascal/resources/pp/class_Interface.phppp | 24 ++++++++++++++++++ .../pp/class_PHP4styledeclarations.phppp | 24 ++++++++++++++++++ .../rascal/resources/pp/class_Traits.phppp | 24 ++++++++++++++++++ .../resources/pp/expr_Arraydefinitions.phppp | 24 ++++++++++++++++++ src/test/rascal/resources/pp/expr_Casts.phppp | 24 ++++++++++++++++++ src/test/rascal/resources/pp/expr_Clone.phppp | 24 ++++++++++++++++++ .../rascal/resources/pp/expr_Closures.phppp | 24 ++++++++++++++++++ .../pp/expr_Comparisonoperators.phppp | 24 ++++++++++++++++++ .../resources/pp/expr_Errorsuppression.phppp | 24 ++++++++++++++++++ src/test/rascal/resources/pp/expr_Exit.phppp | 24 ++++++++++++++++++ .../resources/pp/expr_Includeandeval.phppp | 24 ++++++++++++++++++ .../resources/pp/expr_Logicaloperators.phppp | 24 ++++++++++++++++++ .../pp/expr_Mathematicaloperators.phppp | 24 ++++++++++++++++++ src/test/rascal/resources/pp/expr_New.phppp | 24 ++++++++++++++++++ src/test/rascal/resources/pp/expr_Print.phppp | 24 ++++++++++++++++++ .../resources/pp/expr_Shellexecution.phppp | 24 ++++++++++++++++++ .../resources/pp/expr_Ternaryoperator.phppp | 24 ++++++++++++++++++ .../resources/pp/expr_Variablesyntaxes.phppp | 24 ++++++++++++++++++ .../resources/pp/expr_isset()andempty().phppp | 24 ++++++++++++++++++ .../resources/pp/fetchAndCall_Arguments.phppp | 24 ++++++++++++++++++ .../stringdereferencing.phppp | 24 ++++++++++++++++++ .../pp/fetchAndCall_Constantfetches.phppp | 24 ++++++++++++++++++ .../pp/fetchAndCall_Functioncalls.phppp | 24 ++++++++++++++++++ ...chAndCall_Newexpressiondereferencing.phppp | 24 ++++++++++++++++++ .../pp/fetchAndCall_Objectaccess.phppp | 24 ++++++++++++++++++ .../pp/fetchAndCall_Simplearrayaccess.phppp | 24 ++++++++++++++++++ .../pp/fetchAndCall_Staticcalls.phppp | 24 ++++++++++++++++++ .../fetchAndCall_Staticpropertyfetches.phppp | 24 ++++++++++++++++++ ...nction_Conditionalfunctiondefinition.phppp | 24 ++++++++++++++++++ ...ion_Defaultvalues(staticscalartests).phppp | 24 ++++++++++++++++++ .../pp/function_Returnandpassbyref.phppp | 24 ++++++++++++++++++ .../function_Specialfunctionvariables.phppp | 24 ++++++++++++++++++ .../resources/pp/function_Typehints.phppp | 24 ++++++++++++++++++ .../pp/function_Variadicfunctions.phppp | 24 ++++++++++++++++++ .../rascal/resources/pp/loop_Doloop.phppp | 24 ++++++++++++++++++ .../resources/pp/loop_Foreachloop.phppp | 24 ++++++++++++++++++ .../rascal/resources/pp/loop_Forloop.phppp | 24 ++++++++++++++++++ .../rascal/resources/pp/loop_Whileloop.phppp | 24 ++++++++++++++++++ .../resources/pp/namespace_Aliases(use).phppp | 24 ++++++++++++++++++ .../pp/namespace_Bracednamespaces.phppp | 24 ++++++++++++++++++ .../pp/namespace_Differentnametypes.phppp | 24 ++++++++++++++++++ .../namespace_Semicolonstylenamespaces.phppp | 24 ++++++++++++++++++ ...tatementsmayoccuroutsideofnamespaces.phppp | 24 ++++++++++++++++++ .../pp/scalar_Constantstringsyntaxes.phppp | Bin 101 -> 2851 bytes .../pp/scalar_Differentfloatsyntaxes.phppp | 24 ++++++++++++++++++ .../resources/pp/scalar_Encapsedstrings.phppp | 24 ++++++++++++++++++ .../resources/pp/scalar_Magicconstants.phppp | 24 ++++++++++++++++++ .../pp/scalar_Nowdocandheredocstrings.phppp | 24 ++++++++++++++++++ .../for/etc.phppp | 24 ++++++++++++++++++ .../pp/stmt_Controlflowstatements.phppp | 24 ++++++++++++++++++ .../rascal/resources/pp/stmt_Declare.phppp | 24 ++++++++++++++++++ src/test/rascal/resources/pp/stmt_Echo.phppp | 24 ++++++++++++++++++ .../resources/pp/stmt_Globalconstants.phppp | 24 ++++++++++++++++++ .../resources/pp/stmt_If/Elseif/Else.phppp | 24 ++++++++++++++++++ .../rascal/resources/pp/stmt_InlineHTML.phppp | 24 ++++++++++++++++++ .../rascal/resources/pp/stmt_Switch.phppp | 24 ++++++++++++++++++ .../rascal/resources/pp/stmt_Try/catch.phppp | 24 ++++++++++++++++++ src/test/rascal/resources/pp/stmt_Unset.phppp | 24 ++++++++++++++++++ .../resources/pp/stmt___halt_compiler.phppp | 24 ++++++++++++++++++ 95 files changed, 1863 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index c161681..ca001fa 100644 --- a/pom.xml +++ b/pom.xml @@ -104,6 +104,7 @@ SLASHSTAR_STYLE RASCAL_STYLE SDF_STYLE + PHPPP_STYLE diff --git a/rascal_style.xml b/rascal_style.xml index 8a41fcf..2c9512f 100644 --- a/rascal_style.xml +++ b/rascal_style.xml @@ -9,11 +9,21 @@ true - %% - %% - %%$ - %%$ + %% + %% + %% $ + %% $ + %% true true + + # + # + # $ + # $ + # + true + true + diff --git a/src/main/rascal/lang/php/sdf/PHP4.sdf b/src/main/rascal/lang/php/sdf/PHP4.sdf index 5636988..df5fc66 100644 --- a/src/main/rascal/lang/php/sdf/PHP4.sdf +++ b/src/main/rascal/lang/php/sdf/PHP4.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/PHP4Test.sdf b/src/main/rascal/lang/php/sdf/PHP4Test.sdf index 2ca8154..bcf3b53 100644 --- a/src/main/rascal/lang/php/sdf/PHP4Test.sdf +++ b/src/main/rascal/lang/php/sdf/PHP4Test.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/PHP5.sdf b/src/main/rascal/lang/php/sdf/PHP5.sdf index 8b2aaa2..4817eb7 100644 --- a/src/main/rascal/lang/php/sdf/PHP5.sdf +++ b/src/main/rascal/lang/php/sdf/PHP5.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/PHP5Test.sdf b/src/main/rascal/lang/php/sdf/PHP5Test.sdf index 2dd3b9f..b091367 100644 --- a/src/main/rascal/lang/php/sdf/PHP5Test.sdf +++ b/src/main/rascal/lang/php/sdf/PHP5Test.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Expressions.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Expressions.sdf index f279073..0dd773e 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Expressions.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Expressions.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/HiddenSemiColon.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/HiddenSemiColon.sdf index a51ebbc..6b293f2 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/HiddenSemiColon.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/HiddenSemiColon.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Keywords.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Keywords.sdf index 4f3a928..0118fe5 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Keywords.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Keywords.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Layout.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Layout.sdf index c0e2f0a..1e70f81 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Layout.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Layout.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Literals.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Literals.sdf index b05ed0f..c835944 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Literals.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Literals.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Main.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Main.sdf index e0ed31f..e70ba77 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Main.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Main.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Operators.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Operators.sdf index 9ac3e89..eddf8f0 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Operators.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Operators.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Statements.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Statements.sdf index 2557410..14e8fda 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Statements.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Statements.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/Tags.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/Tags.sdf index bc1a7fa..9f05797 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/Tags.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/Tags.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/literals/DoubleQuotedStringLiterals.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/literals/DoubleQuotedStringLiterals.sdf index f86d3ec..95cb702 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/literals/DoubleQuotedStringLiterals.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/literals/DoubleQuotedStringLiterals.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/literals/HeredocLiterals.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/literals/HeredocLiterals.sdf index 49fe153..0b12394 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/literals/HeredocLiterals.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/literals/HeredocLiterals.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/literals/LiteralsMain.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/literals/LiteralsMain.sdf index 3d6fa60..13bd0c5 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/literals/LiteralsMain.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/literals/LiteralsMain.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/literals/NumberLiterals.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/literals/NumberLiterals.sdf index eebaafc..b4c8892 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/literals/NumberLiterals.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/literals/NumberLiterals.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/literals/SingleQuotedStringLiterals.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/literals/SingleQuotedStringLiterals.sdf index 43a5afc..4d5fdf0 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/literals/SingleQuotedStringLiterals.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/literals/SingleQuotedStringLiterals.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/literals/StringLiteral.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/literals/StringLiteral.sdf index 2457953..013a2a0 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/literals/StringLiteral.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/literals/StringLiteral.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/common/literals/VariableLiterals.sdf b/src/main/rascal/lang/php/sdf/languages/php/common/literals/VariableLiterals.sdf index 32b85a5..7054a0b 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/common/literals/VariableLiterals.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/common/literals/VariableLiterals.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/version4/Keywords4.sdf b/src/main/rascal/lang/php/sdf/languages/php/version4/Keywords4.sdf index ef8fb18..b7d45c0 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version4/Keywords4.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version4/Keywords4.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/version4/Main4.sdf b/src/main/rascal/lang/php/sdf/languages/php/version4/Main4.sdf index 7287e07..03c318f 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version4/Main4.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version4/Main4.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/version4/Precedence4.sdf b/src/main/rascal/lang/php/sdf/languages/php/version4/Precedence4.sdf index 7acefb3..35d2d43 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version4/Precedence4.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version4/Precedence4.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/version4/Statements4.sdf b/src/main/rascal/lang/php/sdf/languages/php/version4/Statements4.sdf index 9c1dea7..8909fa8 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version4/Statements4.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version4/Statements4.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/version5/Expressions5.sdf b/src/main/rascal/lang/php/sdf/languages/php/version5/Expressions5.sdf index ff94d2f..c124b38 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version5/Expressions5.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version5/Expressions5.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/version5/Keywords5.sdf b/src/main/rascal/lang/php/sdf/languages/php/version5/Keywords5.sdf index 74eee5e..59f983a 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version5/Keywords5.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version5/Keywords5.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/version5/Main5.sdf b/src/main/rascal/lang/php/sdf/languages/php/version5/Main5.sdf index 039460e..ddf1385 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version5/Main5.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version5/Main5.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/version5/Precedence5.sdf b/src/main/rascal/lang/php/sdf/languages/php/version5/Precedence5.sdf index 8f8cc3d..b33d5ee 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version5/Precedence5.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version5/Precedence5.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/version5/Statements5.sdf b/src/main/rascal/lang/php/sdf/languages/php/version5/Statements5.sdf index 712c5f3..d3d7cbe 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version5/Statements5.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version5/Statements5.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/main/rascal/lang/php/sdf/languages/php/version5/literals/VariableLiterals5.sdf b/src/main/rascal/lang/php/sdf/languages/php/version5/literals/VariableLiterals5.sdf index 506bdc4..3058a33 100644 --- a/src/main/rascal/lang/php/sdf/languages/php/version5/literals/VariableLiterals5.sdf +++ b/src/main/rascal/lang/php/sdf/languages/php/version5/literals/VariableLiterals5.sdf @@ -1,3 +1,15 @@ +%% +%% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +%% All rights reserved. +%% +%% Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +%% +%% 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +%% +%% 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +%% %% Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University All rights reserved. diff --git a/src/test/rascal/resources/pp/class_Abstractclass.phppp b/src/test/rascal/resources/pp/class_Abstractclass.phppp index 497ef7f..0e87b32 100644 --- a/src/test/rascal/resources/pp/class_Abstractclass.phppp +++ b/src/test/rascal/resources/pp/class_Abstractclass.phppp @@ -1,3 +1,27 @@ +# +# Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +# +# 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +# +# +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +# b; (new A())->b(); diff --git a/src/test/rascal/resources/pp/fetchAndCall_Objectaccess.phppp b/src/test/rascal/resources/pp/fetchAndCall_Objectaccess.phppp index a037959..0bc5344 100644 --- a/src/test/rascal/resources/pp/fetchAndCall_Objectaccess.phppp +++ b/src/test/rascal/resources/pp/fetchAndCall_Objectaccess.phppp @@ -1,3 +1,27 @@ +# +# Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +# +# 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +# +# +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +# b; $a->b['c']; diff --git a/src/test/rascal/resources/pp/fetchAndCall_Simplearrayaccess.phppp b/src/test/rascal/resources/pp/fetchAndCall_Simplearrayaccess.phppp index 91954b5..597d81d 100644 --- a/src/test/rascal/resources/pp/fetchAndCall_Simplearrayaccess.phppp +++ b/src/test/rascal/resources/pp/fetchAndCall_Simplearrayaccess.phppp @@ -1,3 +1,27 @@ +# +# Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +# +# 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +# +# +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +# 'baz')) { diff --git a/src/test/rascal/resources/pp/function_Returnandpassbyref.phppp b/src/test/rascal/resources/pp/function_Returnandpassbyref.phppp index d84e6b8..c7592df 100644 --- a/src/test/rascal/resources/pp/function_Returnandpassbyref.phppp +++ b/src/test/rascal/resources/pp/function_Returnandpassbyref.phppp @@ -1,3 +1,27 @@ +# +# Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +# +# 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +# +# +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +# `jSrE9cwemD9Loyk3)PC zzreAlWv6r{UJxKyMM*4Q`DlG~}5E>dj#KJ5yf+hOeO&3?39OI2IbelTQP8oGVIHh$;EwpD*mjvq|# z?6{$>_y2A`(zdJZEmS#xh^pSu&h%S5j;5wv-`&|7i*Zwp_!xjRP4~{WZ)n}MwRM*U ze`#yR@4ciKmw!+-Pn$)I|IB&H`@*_nFujEP=ov&z%d=N ze5wT|teeViO@FZE<#P?-I`ZLB0}`zFu<5Us;VR%T>u$Z@q8Yrqt{C6I`3{ku&objm3%7Aq-csiw5Z5-t_7Ji%_R zrI?huz{UwvxOw6OEMF0Sy^vffDkO>dA`<`ux@5T)Tty`EI4cv8&msZ<<%On9%!S4= zT|}Pr`86u0H0Lr-fx;#t6ME(Orb6eAYYH+(3nsOQ%Zy1{lyXrhPA;uPs5oO{&XY^9 zgOT_Z&o!x(W!VR_blRWfIN=bB; diff --git a/src/test/rascal/resources/pp/scalar_Magicconstants.phppp b/src/test/rascal/resources/pp/scalar_Magicconstants.phppp index c8ac55f..1c697d5 100644 --- a/src/test/rascal/resources/pp/scalar_Magicconstants.phppp +++ b/src/test/rascal/resources/pp/scalar_Magicconstants.phppp @@ -1,3 +1,27 @@ +# +# Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +# +# 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +# +# +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +# B diff --git a/src/test/rascal/resources/pp/stmt_Switch.phppp b/src/test/rascal/resources/pp/stmt_Switch.phppp index 9bb6aac..1c6fc2e 100644 --- a/src/test/rascal/resources/pp/stmt_Switch.phppp +++ b/src/test/rascal/resources/pp/stmt_Switch.phppp @@ -1,3 +1,27 @@ +# +# Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +# +# 2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +# +# +Copyright (c) 2013, NWO-I Centrum Wiskunde & Informatica (CWI), Mark Hills, Apalachean State University +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. +# Date: Mon, 18 Sep 2023 13:48:14 +0200 Subject: [PATCH 6/6] trying to get tests to automatically run on commit --- META-INF/RASCAL.MF | 2 +- pom.xml | 28 +++++++++++++++++++++++++++- src/test/java/AllTests.java | 10 ++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 src/test/java/AllTests.java diff --git a/META-INF/RASCAL.MF b/META-INF/RASCAL.MF index 9955e72..44e459e 100644 --- a/META-INF/RASCAL.MF +++ b/META-INF/RASCAL.MF @@ -1,3 +1,3 @@ Project-Name: php-analysis -Source: src/main/rascal +Source: src/main/rascal, src/test/rascal Require-Libraries: |lib://rascal-git| diff --git a/pom.xml b/pom.xml index ca001fa..e5f52fd 100644 --- a/pom.xml +++ b/pom.xml @@ -183,7 +183,33 @@ - + + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M3 + + + test + test + + + -ea + -Xmx2G + -Xss128m + -Dfile.encoding=UTF-8 + + + **/*Tests.java + + ${basedir}/src/ + + + test + + + +
diff --git a/src/test/java/AllTests.java b/src/test/java/AllTests.java new file mode 100644 index 0000000..3b573e2 --- /dev/null +++ b/src/test/java/AllTests.java @@ -0,0 +1,10 @@ + +import org.junit.runner.RunWith; +import org.rascalmpl.test.infrastructure.RascalJUnitTestPrefix; +import org.rascalmpl.test.infrastructure.RascalJUnitTestRunner; + +@RunWith(RascalJUnitTestRunner.class) +@RascalJUnitTestPrefix("lang::php") +public class AllTests { + +}