I\'m reading \"Javascript, The Good Parts\" by Douglas Crockford, and having a difficulty understanding the use of all the railroad diagrams. He also doesn\'t elaborate much
This IBM page probably has the simplest explanation.
The Wikipedia page offers more info in how to construct them.