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 ec7c6d2..0000000 Binary files a/__pycache__/errors.cpython-37.pyc and /dev/null differ diff --git a/__pycache__/intern.cpython-37.pyc b/__pycache__/intern.cpython-37.pyc deleted file mode 100644 index eec237f..0000000 Binary files a/__pycache__/intern.cpython-37.pyc and /dev/null differ diff --git a/__pycache__/rstrings.cpython-37.pyc b/__pycache__/rstrings.cpython-37.pyc deleted file mode 100644 index b04ae20..0000000 Binary files a/__pycache__/rstrings.cpython-37.pyc and /dev/null differ diff --git a/__pycache__/rtypes.cpython-37.pyc b/__pycache__/rtypes.cpython-37.pyc deleted file mode 100644 index 570dfdc..0000000 Binary files a/__pycache__/rtypes.cpython-37.pyc and /dev/null differ 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 6ea14af..0000000 Binary files a/modules/__pycache__/builtin.cpython-37.pyc and /dev/null differ 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