diff options
author | Himbeer <himbeer@disroot.org> | 2024-10-20 19:11:28 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-10-20 19:11:28 +0200 |
commit | c67c7082dbc9601b68d80a63f340415e5ceb48c8 (patch) | |
tree | 80c2e50f7e186a2e611464c329795476f63674c1 | |
parent | 43c27d28f13c6c2ab493565f41ff6bd6aedf273d (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.txt | 4 |
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 |