490 views
1 votes
1 votes
Write a $Yacc$ program that takes lists (as defined by the grammar of Question $4.2.2(e)$, but with any single character as an element, not just $a$) and produces as output a linear representation of the same list; i.e., a single list of the elements, in the same order that they appear in the input.

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
2
admin asked Aug 20, 2019
307 views
Write a $Yacc$ program that tells whether its input is a palindrome (sequence of characters that read the same forward and backward).
0 votes
0 votes
0 answers
3
admin asked Aug 20, 2019
439 views
Write a $Yacc$ program that takes boolean expressions as input [as given by the grammar of Question $4.2.2(g)$] and produces the truth value of the expressions.