From fe789be7a358ba97da518ae250fa18aeed62caf8 Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Fri, 19 Jul 2024 16:19:52 +0200 Subject: [PATCH] Simplify the about_grammmar This is possible thanks to the grammar of minishell being simpler than that of shell. --- about_grammar | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/about_grammar b/about_grammar index bd34367..5b51e27 100644 --- a/about_grammar +++ b/about_grammar @@ -12,14 +12,8 @@ Grammar Rules: 3. Redirection from here-document Quote removal 7. Assignment preceding command name - a. First word - If the TOKEN contains the character '=', a WORD is returned - otherwise use rule 7b. - b. Not the first word - If TOKEN contaion unqouted '=' character: - - if characters before '=' form valid name* - an ASSIGNMENT_WORD is returned - - otherwise a WORD is returned + If TOKEN contains unquoted character '=' and preceding that is a valid name + ASSIGNMENT_WORD is returned, otherwise WORD is returned * A valid name consists solely of underscores, digits and alphabetics from the porable character set. The first character of a valid name -- 2.30.2