diff options
author | Himbeer <himbeer@disroot.org> | 2024-09-04 11:44:41 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-09-04 11:44:41 +0200 |
commit | f27272532c25180a7f2d4b0f5f1d50c0a1a04564 (patch) | |
tree | 4404d35c7303830d6cbf49e2f40f1cd909ca6417 | |
parent | 231cd53440c4820aa07d2a9218a502e3599bc48a (diff) |
Add extern functions to the grammar
-rw-r--r-- | GRAMMAR.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/GRAMMAR.txt b/GRAMMAR.txt index 23799f0..d11aa3c 100644 --- a/GRAMMAR.txt +++ b/GRAMMAR.txt @@ -5,7 +5,7 @@ root -> toplevel* toplevel -> function -function -> "export"? "func" IDENTIFIER "(" param? ")" IDENTIFIER block +function -> ( "export" | "extern" )? "func" IDENTIFIER "(" param? ")" IDENTIFIER block? param -> IDENTIFIER IDENTIFIER ( "," param )? block -> "{" ( statement )* "}" |