Prexonite, a .NET hosted scripting language with a focus on meta-programming and embedded DSLs
0

Configure Feed

Select the types of activity you want to include in your feed.

Convert *.pxs files to LF

While the Prexonite parser doesn't care about CR, multi-line strings will contain CRs verbatim. On Windows, this often doesn't matter, but on Linux, these CR characters will be surprising.

Christian Klauser (Dec 28, 2020, 9:54 PM +0100) 3ca48368 6a19e82c

+310 -310
+26 -26
Prexonite/prxlib/sys.pxs
··· 1 - //PRX 2 - 3 - Name sys/0.0; 4 - References { 5 - prx::prim/0.0, 6 - prx::core/0.0 7 - }; 8 - 9 - // Re-export prx.prim from sys. We want to keep the existence of the prx.prim module 10 - // a secret. 11 - namespace prx.prim {} 12 - export prx.prim.*; 13 - 14 - // prx.core is the part of the standard library that even other parts of the standard 15 - // library depend on. 16 - // For the moment, prx.core gets dumped directly into sys. 17 - // In case of backwards-incompatible changes in the future, sys would maintain the old. 18 - // behavior while prx.core would move forward 19 - // Adventurous users can depend directly on prx.prim to be on the bleeding edge. 20 - namespace sys {} 21 - export prx.core.*; 22 - 23 - // We deliberately re-export this 'as-is' as part of the standard library. 24 - // Things in here are too experimental for use inside the standard library 25 - // and thus not a good fit for prx.core 26 - namespace prx.experimental {} 1 + //PRX 2 + 3 + Name sys/0.0; 4 + References { 5 + prx::prim/0.0, 6 + prx::core/0.0 7 + }; 8 + 9 + // Re-export prx.prim from sys. We want to keep the existence of the prx.prim module 10 + // a secret. 11 + namespace prx.prim {} 12 + export prx.prim.*; 13 + 14 + // prx.core is the part of the standard library that even other parts of the standard 15 + // library depend on. 16 + // For the moment, prx.core gets dumped directly into sys. 17 + // In case of backwards-incompatible changes in the future, sys would maintain the old. 18 + // behavior while prx.core would move forward 19 + // Adventurous users can depend directly on prx.prim to be on the bleeding edge. 20 + namespace sys {} 21 + export prx.core.*; 22 + 23 + // We deliberately re-export this 'as-is' as part of the standard library. 24 + // Things in here are too experimental for use inside the standard library 25 + // and thus not a good fit for prx.core 26 + namespace prx.experimental {} 27 27 export prx.experimental.*;
+32 -32
Prx/psr/console.pxs
··· 1 - // Prexonite 2 - // 3 - // Copyright (c) 2014, Christian Klauser 4 - // All rights reserved. 5 - // 6 - // Redistribution and use in source and binary forms, with or without modification, 7 - // are permitted provided that the following conditions are met: 8 - // 9 - // Redistributions of source code must retain the above copyright notice, 10 - // this list of conditions and the following disclaimer. 11 - // Redistributions in binary form must reproduce the above copyright notice, 12 - // this list of conditions and the following disclaimer in the 13 - // documentation and/or other materials provided with the distribution. 14 - // The names of the contributors may be used to endorse or 15 - // promote products derived from this software without specific prior written permission. 16 - // 17 - // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 - // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 - // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 - // IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 21 - // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 - // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 - // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 - // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 25 - // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 - 27 - build does require 28 - ( 29 - @"psr\misc.pxs", 30 - @"psr\debug.pxs", 31 - @"psr\struct.pxs", 32 - @"psr\impl\console.pxs" 1 + // Prexonite 2 + // 3 + // Copyright (c) 2014, Christian Klauser 4 + // All rights reserved. 5 + // 6 + // Redistribution and use in source and binary forms, with or without modification, 7 + // are permitted provided that the following conditions are met: 8 + // 9 + // Redistributions of source code must retain the above copyright notice, 10 + // this list of conditions and the following disclaimer. 11 + // Redistributions in binary form must reproduce the above copyright notice, 12 + // this list of conditions and the following disclaimer in the 13 + // documentation and/or other materials provided with the distribution. 14 + // The names of the contributors may be used to endorse or 15 + // promote products derived from this software without specific prior written permission. 16 + // 17 + // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 + // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 + // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 + // IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 21 + // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 + // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 + // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 + // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 25 + // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 + 27 + build does require 28 + ( 29 + @"psr\misc.pxs", 30 + @"psr\debug.pxs", 31 + @"psr\struct.pxs", 32 + @"psr\impl\console.pxs" 33 33 );
+161 -161
Prx/psr/experimental/indentation.pxs
··· 1 - // Prexonite 2 - // 3 - // Copyright (c) 2014, Christian Klauser 4 - // All rights reserved. 5 - // 6 - // Redistribution and use in source and binary forms, with or without modification, 7 - // are permitted provided that the following conditions are met: 8 - // 9 - // Redistributions of source code must retain the above copyright notice, 10 - // this list of conditions and the following disclaimer. 11 - // Redistributions in binary form must reproduce the above copyright notice, 12 - // this list of conditions and the following disclaimer in the 13 - // documentation and/or other materials provided with the distribution. 14 - // The names of the contributors may be used to endorse or 15 - // promote products derived from this software without specific prior written permission. 16 - // 17 - // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 - // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 - // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 - // IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 21 - // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 - // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 - // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 - // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 25 - // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 - 27 - 28 - function create_indented_writer(buffer, indentation) 29 - { 30 - if(buffer is String) 31 - { 32 - indentation = buffer; 33 - buffer = null; 34 - } 35 - 36 - if(buffer is System::Text::StringBuilder) 37 - buffer = new System::IO::StringWriter(buffer); 38 - 39 - buffer ??= new System::IO::StringWriter; 40 - buffer ~= System::IO::TextWriter; 41 - indentation ??= " "; 42 - 43 - var s = new Structure; 44 - 45 - s.\\(@"\make_indentation") = (self,i) => 46 - { 47 - self.\icachestr = self.\indentation*(i ?? 0); 48 - }; 49 - 50 - s.\(@"\indentation") = indentation; 51 - s.\(@"\icachestr") = ""; 52 - s.\(@"\icachelen") = 0; 53 - s.\(@"\writer") = buffer; 54 - 55 - s.\(@"\level") = 0; 56 - s.\\("set_level") = (self,newLevel) => 57 - { 58 - if(newLevel < 0) 59 - throw "indented writer cannot have a negative indentation"; 60 - self.\level = newLevel; 61 - self.\make_indentation(newLevel); 62 - }; 63 - s.\\("get_level") = (self) => self.\level; 64 - s.\(@"\delayed_indent") = false; 65 - 66 - s.\\(@"\dent") = (self,deltaLevel) => 67 - { 68 - self.set_level(self.get_level() + deltaLevel); 69 - }; 70 - s.\\("indent") = (self,deltaLevel) => 71 - { 72 - self.\dent(deltaLevel ?? 1); 73 - }; 74 - s.\\("unindent") = (self,deltaLevel) => 75 - { 76 - self.\dent(-(deltaLevel ?? 1)); 77 - }; 78 - 79 - s.\\(@"\iprintindent") = (self) => 80 - { 81 - self.\writer.Write(self.\icachestr); 82 - }; 83 - s.\\(@"\iensureindent") = (self) => 84 - { 85 - if(self.\delayed_indent) 86 - { 87 - self.\iprintindent(); 88 - self.\delayed_indent = false; 89 - } 90 - }; 91 - s.\\(@"\inewline") = (self) => 92 - { 93 - self.\writer.Write(char("\n")); 94 - self.\delayed_indent = true; 95 - }; 96 - s.\\(@"\iprint") = (self,txt) => 97 - { 98 - var lines = txt.Split(char("\n")); 99 - var lc = lines.Count; 100 - if(lc == 1 and lines[0] == "") 101 - return; 102 - for(var i = 0; i < lc; i++) 103 - { 104 - var line = lines[i]; 105 - 106 - if(line != "" and line != "\r") 107 - self.\iensureindent(); 108 - 109 - self.\writer.Write(line); 110 - 111 - if(i < lc-1) 112 - self.\inewline(); 113 - } 114 - }; 115 - 116 - s.\\("Write") = (self,fmt) => 117 - { 118 - var argc = var args.Count; 119 - if(argc <= 1) 120 - return; 121 - 122 - if(argc == 2) 123 - self.\iprint(fmt); 124 - else 125 - self.\iprint(call\member(fmt,"Format",args >> skip(2))); 126 - }; 127 - 128 - s.\\("WriteLine") = (self,fmt) => 129 - { 130 - call\member(self,"Write",var args >> skip(1)); 131 - self.\inewline(); 132 - }; 133 - 134 - s.\\("FlushIndentation") = (self, deltaLevel) => 135 - { 136 - if(deltaLevel is null) 137 - { 138 - self.\iensureindent(); 139 - } 140 - else 141 - { 142 - using(self.indented(deltaLevel)) 143 - self.\iensureindent(); 144 - } 145 - }; 146 - 147 - s.\\("Writer") = (self) => s.\writer; 148 - s.\\("ToString") = (self) => s.\writer.ToString(); 149 - s.\\("indented") = (self,deltaLevel) => 150 - { 151 - deltaLevel ??= 1; 152 - var d = new Structure; 153 - d.\(@"\iw") = self; 154 - d.\(@"\dl") = deltaLevel; 155 - d.\\("Dispose") = self => self.\iw.unindent(self.\dl); 156 - 157 - self.indent(deltaLevel); 158 - return d; 159 - }; 160 - 161 - return s; 1 + // Prexonite 2 + // 3 + // Copyright (c) 2014, Christian Klauser 4 + // All rights reserved. 5 + // 6 + // Redistribution and use in source and binary forms, with or without modification, 7 + // are permitted provided that the following conditions are met: 8 + // 9 + // Redistributions of source code must retain the above copyright notice, 10 + // this list of conditions and the following disclaimer. 11 + // Redistributions in binary form must reproduce the above copyright notice, 12 + // this list of conditions and the following disclaimer in the 13 + // documentation and/or other materials provided with the distribution. 14 + // The names of the contributors may be used to endorse or 15 + // promote products derived from this software without specific prior written permission. 16 + // 17 + // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 + // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 + // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 + // IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 21 + // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 + // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 + // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 + // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 25 + // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 + 27 + 28 + function create_indented_writer(buffer, indentation) 29 + { 30 + if(buffer is String) 31 + { 32 + indentation = buffer; 33 + buffer = null; 34 + } 35 + 36 + if(buffer is System::Text::StringBuilder) 37 + buffer = new System::IO::StringWriter(buffer); 38 + 39 + buffer ??= new System::IO::StringWriter; 40 + buffer ~= System::IO::TextWriter; 41 + indentation ??= " "; 42 + 43 + var s = new Structure; 44 + 45 + s.\\(@"\make_indentation") = (self,i) => 46 + { 47 + self.\icachestr = self.\indentation*(i ?? 0); 48 + }; 49 + 50 + s.\(@"\indentation") = indentation; 51 + s.\(@"\icachestr") = ""; 52 + s.\(@"\icachelen") = 0; 53 + s.\(@"\writer") = buffer; 54 + 55 + s.\(@"\level") = 0; 56 + s.\\("set_level") = (self,newLevel) => 57 + { 58 + if(newLevel < 0) 59 + throw "indented writer cannot have a negative indentation"; 60 + self.\level = newLevel; 61 + self.\make_indentation(newLevel); 62 + }; 63 + s.\\("get_level") = (self) => self.\level; 64 + s.\(@"\delayed_indent") = false; 65 + 66 + s.\\(@"\dent") = (self,deltaLevel) => 67 + { 68 + self.set_level(self.get_level() + deltaLevel); 69 + }; 70 + s.\\("indent") = (self,deltaLevel) => 71 + { 72 + self.\dent(deltaLevel ?? 1); 73 + }; 74 + s.\\("unindent") = (self,deltaLevel) => 75 + { 76 + self.\dent(-(deltaLevel ?? 1)); 77 + }; 78 + 79 + s.\\(@"\iprintindent") = (self) => 80 + { 81 + self.\writer.Write(self.\icachestr); 82 + }; 83 + s.\\(@"\iensureindent") = (self) => 84 + { 85 + if(self.\delayed_indent) 86 + { 87 + self.\iprintindent(); 88 + self.\delayed_indent = false; 89 + } 90 + }; 91 + s.\\(@"\inewline") = (self) => 92 + { 93 + self.\writer.Write(char("\n")); 94 + self.\delayed_indent = true; 95 + }; 96 + s.\\(@"\iprint") = (self,txt) => 97 + { 98 + var lines = txt.Split(char("\n")); 99 + var lc = lines.Count; 100 + if(lc == 1 and lines[0] == "") 101 + return; 102 + for(var i = 0; i < lc; i++) 103 + { 104 + var line = lines[i]; 105 + 106 + if(line != "" and line != "\r") 107 + self.\iensureindent(); 108 + 109 + self.\writer.Write(line); 110 + 111 + if(i < lc-1) 112 + self.\inewline(); 113 + } 114 + }; 115 + 116 + s.\\("Write") = (self,fmt) => 117 + { 118 + var argc = var args.Count; 119 + if(argc <= 1) 120 + return; 121 + 122 + if(argc == 2) 123 + self.\iprint(fmt); 124 + else 125 + self.\iprint(call\member(fmt,"Format",args >> skip(2))); 126 + }; 127 + 128 + s.\\("WriteLine") = (self,fmt) => 129 + { 130 + call\member(self,"Write",var args >> skip(1)); 131 + self.\inewline(); 132 + }; 133 + 134 + s.\\("FlushIndentation") = (self, deltaLevel) => 135 + { 136 + if(deltaLevel is null) 137 + { 138 + self.\iensureindent(); 139 + } 140 + else 141 + { 142 + using(self.indented(deltaLevel)) 143 + self.\iensureindent(); 144 + } 145 + }; 146 + 147 + s.\\("Writer") = (self) => s.\writer; 148 + s.\\("ToString") = (self) => s.\writer.ToString(); 149 + s.\\("indented") = (self,deltaLevel) => 150 + { 151 + deltaLevel ??= 1; 152 + var d = new Structure; 153 + d.\(@"\iw") = self; 154 + d.\(@"\dl") = deltaLevel; 155 + d.\\("Dispose") = self => self.\iw.unindent(self.\dl); 156 + 157 + self.indent(deltaLevel); 158 + return d; 159 + }; 160 + 161 + return s; 162 162 }
+29 -29
Prx/psr/json.pxs
··· 1 - // Prexonite 2 - // 3 - // Copyright (c) 2014, Christian Klauser 4 - // All rights reserved. 5 - // 6 - // Redistribution and use in source and binary forms, with or without modification, 7 - // are permitted provided that the following conditions are met: 8 - // 9 - // Redistributions of source code must retain the above copyright notice, 10 - // this list of conditions and the following disclaimer. 11 - // Redistributions in binary form must reproduce the above copyright notice, 12 - // this list of conditions and the following disclaimer in the 13 - // documentation and/or other materials provided with the distribution. 14 - // The names of the contributors may be used to endorse or 15 - // promote products derived from this software without specific prior written permission. 16 - // 17 - // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 - // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 - // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 - // IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 21 - // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 - // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 - // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 - // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 25 - // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 - 27 - build does require 28 - ( 29 - @"psr\file.pxs", @"psr\impl\json.pxs" 1 + // Prexonite 2 + // 3 + // Copyright (c) 2014, Christian Klauser 4 + // All rights reserved. 5 + // 6 + // Redistribution and use in source and binary forms, with or without modification, 7 + // are permitted provided that the following conditions are met: 8 + // 9 + // Redistributions of source code must retain the above copyright notice, 10 + // this list of conditions and the following disclaimer. 11 + // Redistributions in binary form must reproduce the above copyright notice, 12 + // this list of conditions and the following disclaimer in the 13 + // documentation and/or other materials provided with the distribution. 14 + // The names of the contributors may be used to endorse or 15 + // promote products derived from this software without specific prior written permission. 16 + // 17 + // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 + // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 + // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 + // IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 21 + // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 + // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 + // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 + // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 25 + // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 + 27 + build does require 28 + ( 29 + @"psr\file.pxs", @"psr\impl\json.pxs" 30 30 );
+30 -30
Prx/psr/misc.pxs
··· 1 - // Prexonite 2 - // 3 - // Copyright (c) 2014, Christian Klauser 4 - // All rights reserved. 5 - // 6 - // Redistribution and use in source and binary forms, with or without modification, 7 - // are permitted provided that the following conditions are met: 8 - // 9 - // Redistributions of source code must retain the above copyright notice, 10 - // this list of conditions and the following disclaimer. 11 - // Redistributions in binary form must reproduce the above copyright notice, 12 - // this list of conditions and the following disclaimer in the 13 - // documentation and/or other materials provided with the distribution. 14 - // The names of the contributors may be used to endorse or 15 - // promote products derived from this software without specific prior written permission. 16 - // 17 - // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 - // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 - // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 - // IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 21 - // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 - // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 - // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 - // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 25 - // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 - 27 - build does require 28 - ( 29 - @"psr\struct.pxs", @"psr\impl\misc.pxs" 30 - ); 1 + // Prexonite 2 + // 3 + // Copyright (c) 2014, Christian Klauser 4 + // All rights reserved. 5 + // 6 + // Redistribution and use in source and binary forms, with or without modification, 7 + // are permitted provided that the following conditions are met: 8 + // 9 + // Redistributions of source code must retain the above copyright notice, 10 + // this list of conditions and the following disclaimer. 11 + // Redistributions in binary form must reproduce the above copyright notice, 12 + // this list of conditions and the following disclaimer in the 13 + // documentation and/or other materials provided with the distribution. 14 + // The names of the contributors may be used to endorse or 15 + // promote products derived from this software without specific prior written permission. 16 + // 17 + // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 + // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 + // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 + // IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 21 + // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 + // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 + // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 + // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 25 + // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 + 27 + build does require 28 + ( 29 + @"psr\struct.pxs", @"psr\impl\misc.pxs" 30 + );
+32 -32
Prx/psr/queue.pxs
··· 1 - // Prexonite 2 - // 3 - // Copyright (c) 2014, Christian Klauser 4 - // All rights reserved. 5 - // 6 - // Redistribution and use in source and binary forms, with or without modification, 7 - // are permitted provided that the following conditions are met: 8 - // 9 - // Redistributions of source code must retain the above copyright notice, 10 - // this list of conditions and the following disclaimer. 11 - // Redistributions in binary form must reproduce the above copyright notice, 12 - // this list of conditions and the following disclaimer in the 13 - // documentation and/or other materials provided with the distribution. 14 - // The names of the contributors may be used to endorse or 15 - // promote products derived from this software without specific prior written permission. 16 - // 17 - // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 - // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 - // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 - // IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 21 - // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 - // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 - // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 - // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 25 - // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 - 27 - 28 - build does require 29 - ( 30 - @"psr\struct.pxs", 31 - @"psr\impl\queue.pxs" 32 - ); 1 + // Prexonite 2 + // 3 + // Copyright (c) 2014, Christian Klauser 4 + // All rights reserved. 5 + // 6 + // Redistribution and use in source and binary forms, with or without modification, 7 + // are permitted provided that the following conditions are met: 8 + // 9 + // Redistributions of source code must retain the above copyright notice, 10 + // this list of conditions and the following disclaimer. 11 + // Redistributions in binary form must reproduce the above copyright notice, 12 + // this list of conditions and the following disclaimer in the 13 + // documentation and/or other materials provided with the distribution. 14 + // The names of the contributors may be used to endorse or 15 + // promote products derived from this software without specific prior written permission. 16 + // 17 + // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 + // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 + // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 + // IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 21 + // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 + // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 + // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 + // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 25 + // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 + 27 + 28 + build does require 29 + ( 30 + @"psr\struct.pxs", 31 + @"psr\impl\queue.pxs" 32 + );