parsing - Calculating FOLLOW() or propagate? -


I'm a little confused about the LookAHead computing for the LLRR (1) parser. In the book, "Parsing Techniques - A Practical Guide", they say that the promotional lookhead (+ voluntarily generated lookheads) is equal to the calculation of the variable (), then why is the LALR (1) Parser (according to the Dragon Book) uses the promotion / seamless technique at all, if it can be done first () and follow, which is simple and easy to do?

If this is not the case, what is the difference between two techniques?

In a very brief, look-aligned set in LLLR (1) is only a subset of the following () . And it is calculated by the promotional technique.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -