-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 233b38e Author: ItsDeltin <grittydeltin@gmail.com> Date: Sun Dec 3 01:21:20 2023 -0600 disabled incremental lexer commit 8699739 Author: ItsDeltin <grittydeltin@gmail.com> Date: Sat Dec 2 23:31:01 2023 -0600 ostw wasm: 'remove file' handler commit bcc187b Author: ItsDeltin <grittydeltin@gmail.com> Date: Sat Dec 2 19:57:59 2023 -0600 ostw wasm: open project & lobby settings commit d291dc0 Author: ItsDeltin <grittydeltin@gmail.com> Date: Mon Nov 27 19:34:34 2023 -0600 ostw wasm: File manager commit 34e25a7 Author: ItsDeltin <grittydeltin@gmail.com> Date: Wed Nov 22 23:48:43 2023 -0600 Prevent multiple langserver initiations when awaiting elements.json commit a9aa806 Author: ItsDeltin <grittydeltin@gmail.com> Date: Wed Nov 22 18:26:04 2023 -0600 Web hover provider commit d1ccb32 Author: ItsDeltin <grittydeltin@gmail.com> Date: Thu Nov 16 23:53:19 2023 -0600 ostw wasm: Signature help commit b708b9d Author: ItsDeltin <grittydeltin@gmail.com> Date: Thu Nov 16 19:07:00 2023 -0600 ostw wasm: Interp CompletionItem commit 46f4f48 Author: ItsDeltin <grittydeltin@gmail.com> Date: Thu Nov 16 17:11:35 2023 -0600 Reworked script update delay behaviour commit 9ef906e Author: ItsDeltin <grittydeltin@gmail.com> Date: Thu Nov 16 14:32:08 2023 -0600 wip: ostw wasm
- Loading branch information
Showing
43 changed files
with
1,735 additions
and
1,288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace Deltin.Deltinteger.Decompiler; | ||
|
||
using System; | ||
using Deltin.Deltinteger.Decompiler.ElementToCode; | ||
using TextToElement; | ||
|
||
static class Decompiler | ||
{ | ||
public static DecompileResult DecompileWorkshop(string code) | ||
{ | ||
try | ||
{ | ||
var tte = new ConvertTextToElement(code); | ||
var workshop = tte.Get(); | ||
var workshopToCode = new WorkshopDecompiler(workshop, new OmitLobbySettingsResolver(), new CodeFormattingOptions()); | ||
var ostw = workshopToCode.Decompile(); | ||
|
||
return new DecompileResult(tte, ostw); | ||
} | ||
catch (Exception ex) | ||
{ | ||
return new DecompileResult(ex); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.