EBNF Grammar for POSIX Shell (gist.github.com)
from ChubakPDP11@programming.dev to programming@programming.dev on 04 Apr 2024 22:06
https://programming.dev/post/12377105

I am implementing my own POSIX Shell so I wrote this not to get lost. I posted a much more inferior iteration of this weeks ago —that one was truly subpar. This one is much better.

Bonus: ebnf.vim.

Thanks.

#programming

threaded - newest

human6439@programming.dev on 05 Apr 2024 04:14 collapse

there are typos in lines 118 (asyncp), 202 (substitue), 346 (bracketet; also see line 352) and 386 (asnyc), and in line 346 you did not update the names from brack to bracket, and in line 283 (and consequently also line 320) the word order should probably be redirect-output-append

ChubakPDP11@programming.dev on 05 Apr 2024 05:04 collapse

Apologies. I will definitely fix them. Do you notice any more errors? I myself just realize that-- path expansion could be replaced with actual rules. Thanks again.

human6439@programming.dev on 05 Apr 2024 05:10 collapse

I updated my comment again. Also, there is no need to apologize! It is virtually impossible to write a document of this size without typos.

ChubakPDP11@programming.dev on 05 Apr 2024 13:44 collapse

Thanks my good human.