878 views

1 Answer

Best answer
2 votes
2 votes

For original grammar
String= pqsqsr
o/p = GAAAAT

If semantic rules are at the end:
o/p = TAAAAG

Start from the TOP to Bottom, when a semantic rule comes first time don't do anything, but the time when you visit it last time and won't visit again, execute it.


selected by

Related questions

0 votes
0 votes
0 answers
1
2 votes
2 votes
1 answer
3
1 votes
1 votes
1 answer
4