patx/relay-lang
supress warnings
Commit d292d5a · patx · 2026-02-09T22:25:54-05:00
Comments
No comments yet.
Diff
diff --git a/src/main.rs b/src/main.rs
index 01af233..361ec13 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,4 @@
-
+#![allow(warnings)]
// relay.rs — Relay v0.1 single-file interpreter (Tokio runtime)
// - Indentation-based parser (spaces only, 4 per level)
// - AST + async evaluator
diff --git a/test.ry b/test.ry
index 9be0c8d..ddaf3f3 100644
--- a/test.ry
+++ b/test.ry
@@ -1,20 +1,2 @@
-app = WebApp()
-server = WebServer()
-
-
[email protected]("/")
-fn index()
- return read_file("index.html")
-
[email protected]("/<pid>")
-fn view_paste(pid)
- paste = db.find_one({"_id": pid})
- return paste["paste_content"]
-
[email protected]("/")
-fn new_paste(paste)
- new_paste = db.insert_one({"paste_content": paste})
- pid = new_paste["_id"]
- app.redirect("/<pid>")
-
-server.run(app) # a comment
+sleep(2000, print("non blocking"))
+print("see")