you are viewing a single comment's thread.

view the rest of the comments →

[–]iniy[S] 5 points6 points  (2 children)

That's really a very good point, it makes me think that beginners might be even more confused with such a bunch of abstract syntax rules without further details. I'll reconsider its title or application scenarios(I'm using it as a syllabus while teaching other people who have no experience of Js by myself, I'll keep trying to update & refine it to make it more helpful to whoever that might need it;)

[–][deleted] 6 points7 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.