Re: yyscan_t was not declared in this scope

2017-02-28 Thread Simon Richter
Hi, On 28.02.2017 21:54, Jack Bates wrote: > TsConfigGrammar.h:125:20: error: ‘yyscan_t’ was not declared in this > scope > I can think of a couple ways around this -- what's the recommended > solution? I've found that none of these ways really work, so I just use %parse-param { void

yyscan_t was not declared in this scope

2017-02-28 Thread Jack Bates
Hi, I'd like to include the header file that Bison generates in another C file, where I implement my actions -- so as to use the token type macros. Meanwhile I've used Flex to implement a reentrant scanner, so the first argument to yyparse() is a yyscan_t: %parse-param { yyscan_t scanner }