From deba2000a9a734b38f1508945e06fed5e8ba6d6f Mon Sep 17 00:00:00 2001 From: niansa Date: Thu, 9 Apr 2020 23:52:22 +0200 Subject: [PATCH] Added license notes to files and put *.pyc into .gitignore --- .gitignore | 1 + __pycache__/errors.cpython-37.pyc | Bin 681 -> 0 bytes __pycache__/intern.cpython-37.pyc | Bin 3378 -> 0 bytes __pycache__/rstrings.cpython-37.pyc | Bin 322 -> 0 bytes __pycache__/rtypes.cpython-37.pyc | Bin 399 -> 0 bytes cli.py | 16 ++++++++++++++++ errors.py | 17 +++++++++++++++++ intern.py | 16 ++++++++++++++++ modules/__pycache__/builtin.cpython-37.pyc | Bin 2585 -> 0 bytes modules/builtin.py | 16 ++++++++++++++++ modules/math.py | 16 ++++++++++++++++ rstrings.py | 16 ++++++++++++++++ rtypes.py | 16 ++++++++++++++++ test.pil | 15 +++++++++++++++ 14 files changed, 129 insertions(+) create mode 100644 .gitignore delete mode 100644 __pycache__/errors.cpython-37.pyc delete mode 100644 __pycache__/intern.cpython-37.pyc delete mode 100644 __pycache__/rstrings.cpython-37.pyc delete mode 100644 __pycache__/rtypes.cpython-37.pyc delete mode 100644 modules/__pycache__/builtin.cpython-37.pyc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d20b64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pyc diff --git a/__pycache__/errors.cpython-37.pyc b/__pycache__/errors.cpython-37.pyc deleted file mode 100644 index ec7c6d23329e95a5c8d47672528f69c9e01b7681..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 681 zcma)(J#K?Q5QUdNgB|R9(1Z(Ek(DMzBqtJ`i>%fx0wjK%SraL>)8`zy5^ZjgDsMoz za>1e*=37?thPRLF^-5q}p1gj?%R#Y2m@U$i&_Y{Zh>Lw-vb6(pKo-c=9>@dP zpoR89KFHBQBBEuA4%cO&+96Dcl!=3-#lhAV&e{E4)24;#(ju+(K63g%%0|_hl>JJ| zy4799btvU~r>gPGk01|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Mt`u^Bq+Me7A~6HpGO2DU!a+ny zdB*eqF1Y#&uHH<7>zfO%f2rt+k3dMxWW^ug=Rwkd&dhw!-&xTAV?poj@tI%I7PZnp zg)9f+jO*641$V@yx5j1x&fUg2$c3HwQnI>(iyur^K-nmL1z>rF`dgROO`--B91WKf zK*jSGK^g9R3_WpMDOL1MHj{g77Si~@I}>^zaE2;6tD(hcb+pFuze>w z@xxE@zn4uFJLx|w>u212R@NG9Rx2a2J#PAys?Xy5PoUzC$~r1r)AUTW5aQ<2u5kxMui1WMP z(R62b9gkgbuIG(1Dx1)qG==PkpTOp<4CX7aRCq3Sssh#8zTj`^b;P1&7yQ>3eBJT~ zno#tDe|_tM-`&07_b&L8&Q0r^$uKKy{BsoIs#e)xNDsq_je)JYFdt>bewA2+QTi?F z*3c!bd~A;T`^%S{^@eHg@-C_8E$Ho z@8k8kmxSgZoAic5D{0|629Riv(9AJ9RAjcwTMUm2{3Xy%01;ZeA*%H@_EE7}L$q8i zX!BSQMcdK0c_6A&5@)MF)di{yR5b#A%eA}wHfFL~$BBk~scu|(N8vfY+o@HcM-Ly} zq|UupT@iG~C4|-lWzNi3^dpqg?jcK+92_5`@ylnKaa{nd;q9L+2>IK=e;k9HS{s$k`1MC0* diff --git a/__pycache__/rstrings.cpython-37.pyc b/__pycache__/rstrings.cpython-37.pyc deleted file mode 100644 index b04ae20b8b4d6977ae0a35713e7e46a7eb8dd72b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 322 zcmX|-!Ait15QfvbrbV}_C(peW!MuQoEaFMlh2DA)vYFThnq*0~f_({Jz!&h9aueUe zlhZA6LMHS7FyD|_7sVODczF7F`NsEW5-~C??(zC7Oh6!k6i#3Pr$9exLm;b3l{Z;E z2qC?1=p$FXgz;iyOFxLN6jp0)U|dB*TNrvdUPk@Ko#H!miZzFlyLQmh9DGHa3;{>z z;uWFc+*r{~Oraqxjh)IF7FM&0sIc5|_$O_uB;?K?oHDKdB97umj_LQBbyiDeRPWi= j+17E5^0}_rUiI9xEOy=O-$Q;o54%gJZA=SGlX(6B`50iU diff --git a/__pycache__/rtypes.cpython-37.pyc b/__pycache__/rtypes.cpython-37.pyc deleted file mode 100644 index 570dfdced0d380b8b08511bebb219caaa744ec6e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 399 zcma)2yH3L}6t$hSjjEP!K%K~ff1pBD7q)_wtpk=7n>Ld3z;1@lu=5>=Kg!BqFmZ08 zX6nF|?(sdo=i0~KE|+tL_+EX!++qD8a)}7V1{rPvkIXQ`KalTYPfVByECS;u&R9Ch zp&Emu+91OMU>P)QFARrHbhFUrxeZ~LMqQ#*rAw<+H&?2xP3x#$DD~EAH*~(3pWu)l zep7j@ODn6w1^MjjgV!bKQyid+&5=W7AS)NB&_HE_87nF!oi@YVNXBd jV}jAiP)%uX1|ZqxBI3JL^cVKcYg1ja9-jL!dc5I(2G~bd diff --git a/cli.py b/cli.py index ba05b9a..2165829 100755 --- a/cli.py +++ b/cli.py @@ -1,4 +1,20 @@ #! /usr/bin/env python3 +""" +This file is part of pilang. + +pilang is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +pilang is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with pilang. If not, see . +""" import sys from intern import main_class diff --git a/errors.py b/errors.py index bef5d08..20086c1 100644 --- a/errors.py +++ b/errors.py @@ -1,3 +1,20 @@ +""" +This file is part of pilang. + +pilang is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +pilang is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with pilang. If not, see . +""" + class nochsuchcmd: pass class badarguments: pass class nosuchmodule: pass diff --git a/intern.py b/intern.py index df74cb6..d240b17 100644 --- a/intern.py +++ b/intern.py @@ -1,3 +1,19 @@ +""" +This file is part of pilang. + +pilang is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +pilang is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with pilang. If not, see . +""" import sys, os from types import ModuleType import errors diff --git a/modules/__pycache__/builtin.cpython-37.pyc b/modules/__pycache__/builtin.cpython-37.pyc deleted file mode 100644 index 6ea14af8144043e76ac5b1b1fa6e4e9d73e92d8b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2585 zcmc&$TWcFf6rR~xtyZ!u%Z@2=A!!@Z%LWrcD6|DrLaz@6wbX_L(Pmj|HugHw%09C) zwvnEkK9>H0KC~}|{-t^CQ~pAp`km3mwkpyZ0-fc|IlFT?XTEcp{cL%;D$r=>mnVNz zg!qeJrcFV32r~E3X`y9Tw8vbw<<~-cT0Iw9oqKIh`?~a8w3U|IA_`t$zG!v0pEeJ| zLy*})mx{L30;{C<+$yDgaO|N2@RBa;5IoQoT?H@eC0zp#^|G#mSM-W*fLHaZUISm! zH=uRhmUjnPx5)AiE91sI1bq%N_t6c-0h0uIAO-S4B~YN{ujQeL%R`LDp%&QEYei*S zI;1Qw+KSS`D#Kl(HKf6=RlPwMXU>kJimh~dI(AcSnMI!N1YY6hDp~!|S)(+s(tQ zo8)`VUSAKoscBBYxPN$R!#K|Jtcc@)f#BVQ=gW(y=AAXB)2CBA?0s&`XCQJUoYn!C z7|IPX^v>aLUlj6LmF`NxPvIS?ZSfd!0sv(z@@WNYZ1_!j`Xy1HY>+ZDb}8?7_RXNP z540jht30bb!NB?n?HPCAad(49D~HtYq{j5!H^W8=>B%~tv(>5nvpKUU-~*IEE(+d* zaB_1fzYsq*MqYsu*g5?X9x}l znNvNl6^SfvgN#cAdA2eIXA+oKwE0tQZ$cPK&3=V{kt6_SLu^ev3OHU!%pmUIRgNNC zIZh}`b`frLi^o{$s|@1#`-oUG^?Is$I9`w?@Fjiq+RJ!DeyF4eL)C{@>y@i)~ z-z?$VyCB1G3t2-N)?G4I5y~7LRq2ax4j7b<#lR5u_;+9cgYzpN^yI+>a7cnHKz%$0 zYU>J6TMnpv5m3aZoxwzWEC&*CmeKp@{(%jBz(b3GsbSzl&>S!|x%LWRP=yx*^B*I| zUmP)?Tr*-`D-g>7!A1RbA_P~-Vjx~`gxvZ+Bcu*szQ1mS;A(9}HNFD#q?g9At;X^A ziiBK?R=_cBwYgqzbTn`uO)(mJICt0%Rd kHX)-tbFCWJWY*!nURryxLAW&r<5M=r@c#kqR`nnL25v#;VgLXD diff --git a/modules/builtin.py b/modules/builtin.py index 76ab4ad..dedaa89 100644 --- a/modules/builtin.py +++ b/modules/builtin.py @@ -1,3 +1,19 @@ +""" +This file is part of pilang. + +pilang is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +pilang is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with pilang. If not, see . +""" import sys import errors import rtypes diff --git a/modules/math.py b/modules/math.py index 186a033..c8bfe85 100644 --- a/modules/math.py +++ b/modules/math.py @@ -1,3 +1,19 @@ +""" +This file is part of pilang. + +pilang is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +pilang is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with pilang. If not, see . +""" import errors import rtypes diff --git a/rstrings.py b/rstrings.py index 2ffdcca..ea4ad8b 100644 --- a/rstrings.py +++ b/rstrings.py @@ -1,3 +1,19 @@ +""" +This file is part of pilang. + +pilang is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +pilang is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with pilang. If not, see . +""" rstrings = { "success": "Success", "fail": "Failed", diff --git a/rtypes.py b/rtypes.py index 63de9a2..a5267c2 100644 --- a/rtypes.py +++ b/rtypes.py @@ -1,2 +1,18 @@ +""" +This file is part of pilang. + +pilang is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +pilang is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with pilang. If not, see . +""" class success: pass class fail: pass diff --git a/test.pil b/test.pil index c256a5a..9a11160 100644 --- a/test.pil +++ b/test.pil @@ -1,3 +1,18 @@ +#This file is part of pilang. +# +#pilang is free software: you can redistribute it and/or modify +#it under the terms of the GNU General Public License as published by +#the Free Software Foundation, either version 3 of the License, or +#(at your option) any later version. +# +#pilang is distributed in the hope that it will be useful, +#but WITHOUT ANY WARRANTY; without even the implied warranty of +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. +# +#You should have received a copy of the GNU General Public License +#along with pilang. If not, see . + # Enable error catching catch True # Initialise stuff