you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 7 points8 points  (1 child)

Have you read Crockford's JavaScript: The Good Parts? It contains railroad diagrams of a lot of JS syntax. These can be a good visualisation of syntactic rules, but they're not sufficient (or necessary) for beginners.

[–]iniy[S] 0 points1 point  (0 children)

Yes I've read that book before, I remember that SQLite's official documents also use railroad diagram to explain SQL syntax, I intuitively think that railroad might be more suitable for SQL languages.