Open JBontes opened 6 years ago
The ntType node sometimes stores its type in a anName attribute and sometimes in a anType attribute.
ntType
anName
anType
The relevant data should be stored in one or the other.
Example:
procedure TPasSyntaxTreeBuilder.StringStatement; begin FStack.AddChild(ntType).Attribute[anName]:= Lexer.Token; inherited; end; procedure TPasSyntaxTreeBuilder.StructuredType; begin FStack.Push(ntType).Attribute[anType]:= Lexer.Token; try inherited; finally FStack.Pop; end; end;
The
ntType
node sometimes stores its type in aanName
attribute and sometimes in aanType
attribute.The relevant data should be stored in one or the other.
Example: