aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-10-20 19:11:28 +0200
committerHimbeer <himbeer@disroot.org>2024-10-20 19:11:28 +0200
commitc67c7082dbc9601b68d80a63f340415e5ceb48c8 (patch)
tree80c2e50f7e186a2e611464c329795476f63674c1
parent43c27d28f13c6c2ab493565f41ff6bd6aedf273d (diff)
Remove import system
Imports will be removed until a clean design can be thought of. A workaround is to use export and extern. The final solution is likely going to be an automation of this or a package-oriented system where source code gets imported directly, single-file or multi-file.
-rw-r--r--doc/grammar.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt
index 0e2f002..4aff55a 100644
--- a/doc/grammar.txt
+++ b/doc/grammar.txt
@@ -1,9 +1,7 @@
root := import* toplevel*
toplevel := externfunc | function | constant | typedef
-import := "import" path [ NAME ] ";"
-
-path := NAME ( "::" NAME )*
+path := NAME
function := [ COMMENT ]
[ "export" ] "func" NAME "(" ( param ), ")" [ type ] block