Print tokens properly using Lex and Yacc
问题 I'm having difficulties printing a sequence of tokens that behaves recursively. To better explain, I will show the sections of the corresponding codes: First, the code on Lex: %{ #include <stdio.h> #include "y.tab.h" installID(){ } %} abreparentese "(" fechaparentese ")" pontoevirgula ";" virgula "," id {letra}(({letra}|{digito})|({letra}|{digito}|{underline}))* digito [0-9] letra [a-z|A-Z] porreal "%real" portexto "%texto" porinteiro "%inteiro" leia "leia" %% {abreparentese} { return