Giter Site home page Giter Site logo

Comments (7)

NoteBookie avatar NoteBookie commented on July 20, 2024 7

Because A -> +S and Grammer Rule No.3, all elements in FOLLOW(A) should in FOLLOW(S), which means they are all {+, *, (, a, ), $}.

from dragon-book-exercise-answers.

AdityaSoni19031997 avatar AdityaSoni19031997 commented on July 20, 2024 2

For the Follow of T, we need first of B, now first of B(remember second grammar has a epsilon, so we can substitute it) means first of A, which means +,* and first of S, which implies first of T, which has ( and a, now come back to the epsilon, using the 1st grammar, we reach at the end of it since we can substitute that B with € and thus we hit the end of it(1st production) and thus we include follow of (left side)S which has $ and )
Hope it helps @theo-one.

from dragon-book-exercise-answers.

Magic-Bytes avatar Magic-Bytes commented on July 20, 2024

Well, I agree with @NoteBookie

from dragon-book-exercise-answers.

NKcqx avatar NKcqx commented on July 20, 2024

Yes, I think the FOLLOW sets are all the same too.

from dragon-book-exercise-answers.

DiuR21 avatar DiuR21 commented on July 20, 2024

So. The origin answer should be changed as soon as possible.

from dragon-book-exercise-answers.

Yudezhi avatar Yudezhi commented on July 20, 2024

yeah,I get the same answer as @NoteBookie ,it should be changed.

from dragon-book-exercise-answers.

theo-one avatar theo-one commented on July 20, 2024

i have a question,why $ is in FOLLOW(A) and FOLLOW(T)?

from dragon-book-exercise-answers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.