Skip to content
Marcus Fernstrom edited this page Jun 26, 2019 · 1 revision

This one took me a little trial and Error: Incompatible types to find.

Going through the book, in chapter 3 we find yylval = atoi(yytext) which I tried translating into yylval := StrToInt(yytext) which throws Error: Incompatible types: got "LongInt" expected "YYSType"

The correct way is yylval.yyInteger := StrToInt(yytext)

Clone this wiki locally