From edb71daef4d6b66d4309af277928c72aa869f07c Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Sat, 28 Oct 2023 16:58:33 +0300 Subject: [PATCH] feat: fully implement local and capture scope object wrappers feat: implement object sending and receiving --- src/assets/index.html | 9 +- .../engine/debug => assets}/protocol.json | 45 +++ src/me/topchetoeu/jscript/Main.java | 3 +- .../jscript/compilation/CompileTarget.java | 4 +- .../compilation/CompoundStatement.java | 13 +- .../jscript/compilation/FunctionBody.java | 17 ++ .../jscript/compilation/Instruction.java | 8 - .../compilation/VariableDeclareStatement.java | 14 +- .../compilation/values/CallStatement.java | 2 +- .../compilation/values/FunctionStatement.java | 4 +- .../compilation/values/IndexStatement.java | 4 +- src/me/topchetoeu/jscript/engine/Engine.java | 10 +- .../jscript/engine/debug/DebugHandler.java | 12 + .../jscript/engine/debug/DebugServer.java | 31 +- .../jscript/engine/debug/HttpRequest.java | 16 +- .../jscript/engine/debug/SimpleDebugger.java | 264 +++++++++++++++--- .../jscript/engine/debug/WebSocket.java | 1 - .../jscript/engine/frame/CodeFrame.java | 32 ++- .../jscript/engine/frame/Runners.java | 9 - .../jscript/engine/scope/LocalScope.java | 64 ----- .../engine/scope/LocalScopeRecord.java | 3 + .../jscript/engine/values/CodeFunction.java | 8 +- .../jscript/engine/values/ScopeValue.java | 51 ++++ src/me/topchetoeu/jscript/json/JSON.java | 63 +++++ src/me/topchetoeu/jscript/json/JSONList.java | 3 + src/me/topchetoeu/jscript/lib/JSONLib.java | 68 +---- .../topchetoeu/jscript/parsing/Parsing.java | 13 +- 27 files changed, 535 insertions(+), 236 deletions(-) rename src/{me/topchetoeu/jscript/engine/debug => assets}/protocol.json (98%) create mode 100644 src/me/topchetoeu/jscript/compilation/FunctionBody.java create mode 100644 src/me/topchetoeu/jscript/engine/values/ScopeValue.java diff --git a/src/assets/index.html b/src/assets/index.html index ee35b77..8a57f1f 100644 --- a/src/assets/index.html +++ b/src/assets/index.html @@ -16,14 +16,15 @@
Here are the available entrypoints:
- Developed by TopchetoEU, MIT License + Running ${NAME} v${VERSION} by ${AUTHOR}