From b8f34c6e53c6bb858ddb45e4001b333ae6be1125 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Wed, 3 Sep 2025 11:37:31 -0700 Subject: [PATCH] Add submodule alias and dependency targets to grammar --- GRAMMAR.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/GRAMMAR.md b/GRAMMAR.md index 7dadfa1f03..e29e999c67 100644 --- a/GRAMMAR.md +++ b/GRAMMAR.md @@ -55,7 +55,9 @@ item : alias eol : NEWLINE | COMMENT NEWLINE -alias : 'alias' NAME ':=' NAME eol +alias : 'alias' NAME ':=' target eol + +target : NAME ('::' NAME)* assignment : NAME ':=' expression eol @@ -138,8 +140,8 @@ variadic : '*' parameter dependencies : dependency* ('&&' dependency+)? -dependency : NAME - | '(' NAME expression* ')' +dependency : target + | '(' target expression* ')' body : INDENT line+ DEDENT