Comments (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.
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.
Well, I agree with @NoteBookie
from dragon-book-exercise-answers.
Yes, I think the FOLLOW sets are all the same too.
from dragon-book-exercise-answers.
So. The origin answer should be changed as soon as possible.
from dragon-book-exercise-answers.
yeah,I get the same answer as @NoteBookie ,it should be changed.
from dragon-book-exercise-answers.
i have a question,why $ is in FOLLOW(A) and FOLLOW(T)?
from dragon-book-exercise-answers.
Related Issues (20)
- good
- Exercise 3.4.1 (3)
- 1.6.1 answer maybe wrong?
- Exercise 6.1.2 (a)
- About Exercise set 2.6
- 编译原理
- Can someone explain me 2.2.1?
- 4.2.1的图片挂掉了
- Help!! A question to answer 2.2 HOT 2
- Exercise 3.7.1 3.7.2 HOT 1
- 4.4.1的第4题答案有问题
- Issue 2.4.md HOT 2
- is 7.2.3-2.gif ok?
- where are the answers of 3.2?
- 练习4.2.1 的第四问没有证明文法为何不具有二义性
- Exercise 2.2.2 d HOT 1
- (6.3.1) I guess values of offset value is not correct at some point
- Exercise 3.3.3, subsequences
- Issue in exercise 3.3.5 (part 4)
- Bug
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dragon-book-exercise-answers.