From 8e04434fafe1cdfb913339529bb98839d2a8563e Mon Sep 17 00:00:00 2001 From: npgit Date: Sat, 6 Dec 2025 15:13:39 -0500 Subject: [PATCH] Remove xml instruction from web build for now --- src/web/AyaWeb.java | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/web/AyaWeb.java b/src/web/AyaWeb.java index cdc292eb..a5169a4d 100644 --- a/src/web/AyaWeb.java +++ b/src/web/AyaWeb.java @@ -22,9 +22,9 @@ public class AyaWeb { private static final StringOut output = new StringOut(); - + public static void main(String[] args) { - + // // Set up StaticData // @@ -35,10 +35,10 @@ public static void main(String[] args) { new PrintStream(output.getErrStream()), null, new EmptyInputWrapper()); - + WebFilesystemIO fs = new WebFilesystemIO(); StaticData.FILESYSTEM = fs; - + // // Named Instructions // Web build only supports a limited set of named instructions @@ -47,7 +47,6 @@ public static void main(String[] args) { WebAvailableNamedInstructionStore wsi = new WebAvailableNamedInstructionStore(); sd.addNamedInstructionStore(wsi); sd.addNamedInstructionStore(new JSONInstructionStore()); - sd.addNamedInstructionStore(new XmlInstructionStore()); sd.addNamedInstructionStore(new DateInstructionStore()); sd.addNamedInstructionStore(new ColorInstructionStore()); sd.addNamedInstructionStore(new LinearAlgebraInstructionStore()); @@ -59,11 +58,11 @@ public static void main(String[] args) { StandaloneAya.runIsolated(s, StaticData.IO); return output.flushOut() + output.flushErr(); }); - + exportAddFile((path, content) -> ((WebFilesystemIO)(StaticData.FILESYSTEM)).addFile(path, content)); - + exportListFiles(() -> String.join(",", fs.listFiles())); - + exportLint(source -> { ArrayList errors = StandaloneAya.lint(source); if (errors.size() > 0) { @@ -75,13 +74,13 @@ public static void main(String[] args) { return ""; } }); - + } - + // // Exported Functions // - + @JSBody(params = "runIsolated", script = "main.runIsolated = runIsolated;") private static native void exportRunIsolated(ExportFunctionRunIsolated fn); @@ -114,4 +113,4 @@ interface ExportFunctionListFiles extends JSObject { @JSFunctor interface ExportFunctionLint extends JSObject { String call(String source); -} \ No newline at end of file +}