Re:Cambridge University Press make their books free until May
by asicsp on Wednesday March 18, 2020 @11:05AM
(#22617424)
That is known as railroad diagrams and provided by sites such as regulex[0] (which I used for js cover) and debuggex [1]. I've also mentioned it in acknowledgements within the book.
[0] https://jex.im/regulex
[1] https://www.debuggex.com/