diff --git a/LICENSE.TXT b/LICENSE.TXT new file mode 100644 index 0000000..5b73981 --- /dev/null +++ b/LICENSE.TXT @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Rick Rongen + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.MD b/README.MD new file mode 100644 index 0000000..4ec2c4a --- /dev/null +++ b/README.MD @@ -0,0 +1,13 @@ +# PJVM +PJVM (say PJ-VM as in peanut butter jelly) is a Python based Java Virtual Machine. + +## Goal +The goal of this project is to give an insight into the big and scary Java Virtual Machine. + +## Why? +For the glory of satan of course! +### No but really? +I got bored one day and wanted to figure out how the JVM worked. And what better way is there than to just implement it. + +## License +This project is licensed under the MIT license, see the [LICENSE.TXT](LICENSE.TXT) \ No newline at end of file diff --git a/pjvm/exceptions.py b/pjvm/exceptions.py index 183540a..384693a 100644 --- a/pjvm/exceptions.py +++ b/pjvm/exceptions.py @@ -1,4 +1,4 @@ -from .opcodes_names import INSTRUCTIONS +from .opcode_names import INSTRUCTIONS class PJVMException(ValueError): diff --git a/pjvm/opcodes_names.py b/pjvm/opcode_names.py similarity index 100% rename from pjvm/opcodes_names.py rename to pjvm/opcode_names.py diff --git a/pjvm/vm.py b/pjvm/vm.py index a3f097c..14f3b35 100644 --- a/pjvm/vm.py +++ b/pjvm/vm.py @@ -7,7 +7,7 @@ from .exceptions import * from .mockimpl import mock_instance_methods, mock_static_objects from .old_jtypes import JArray, JObj, JString from .opcodes import OPCODE_TYPE, Opcode -from .opcodes_names import INSTRUCTIONS +from .opcode_names import INSTRUCTIONS from .stackframe import Frame LOGGER = getLogger(__name__)