my bison didn't get correct value from flex
"徐研辉" <[email protected]> Tue, 5 Jul 2022 15:55:00 +0800
| Newsgroups | gmane.comp.parsers.bison.general |
|---|---|
| Message-ID | <[email protected]> |
Dear Sir or Madam,
I encountered some troubles when attempting to recognize identifiers of C language via flex. As for program shown below, what identifier returned by flex was "main", whereas bison got "main(){
return 3;
}".
Identifiers were only mentioned in the following two places. In flex,
and in bison,
I tried tracking IDENT with yacc.output and debug mode of bison on. IDENT was changed at the other one stage, but I hadn't completely figure it out yet.
Could you give me a hand? If you need any more information or code, let me know please.
Yours sincerely,
Yanhui Xu
[email protected]
(image/jpeg, 1.1 KB) - not displayed
[email protected]
(image/jpeg, 4.4 KB) - not displayed
[email protected]
(image/jpeg, 4.2 KB) - not displayed