Hello, can you consult a problem, I use the Bison, the ultimate operator after executing a semantic rules, reduced to the semantic rules, this is not the ultimate character of the property value has changed, what reason is this excuse me?
Code appears the question is: when the printing in the infinite loop, the list is: "the Term" - & gt; "The Term" - & gt;" The Term "- & gt; . This loopback,
The following is part of the code:
Factor: the Term {Print ($1);/* recursive print this list */}
;
Term: INT {
The $1. Name="INT"; $1. Child=NULL/* initializes the terminator INT */node
$$. Name="Term"; Child=& amp; $$. The $1; Child as a Term/* INT node insert list */
Print ($$);/* this print, is normal */
}
;
Data type: struct P {char * name; Struct P * child; }