Re: Parsing included files, part II.

2020-08-24 Thread Ervin Hegedüs
He again, may be the previous e-mail was a bit confused :). I've created a very simple example to demonstrate what I'd like to do - you can find it here: https://github.com/airween/flextest Anybody can download and compile it. There is a different between inctest_01.conf and inctest_02.conf -

Re: Parsing included files

2020-08-17 Thread Ervin Hegedüs
hi all, I think I've found the bug in my code. This example leads me to solution: http://westes.github.io/flex/manual/Multiple-Input-Buffers.html under yy_new_buffer() description. The only limitation is that the max dept of included files is constant. Thanks and sorry for the noise :).

Re: Parsing included files

2020-08-17 Thread Ervin Hegedüs
Hi Giacinto, On Mon, Aug 17, 2020 at 07:17:00PM +0200, Giacinto Cifelli wrote: > Hi Ervin, > > according to the lex&yacc manual, there should be a yy_create_buffer called > at the beginning, corresponding to the yy_delete_buffer. but there is a yy_scan_string(inputbuff); and yy_scan_strin

Re: Parsing included files

2020-08-17 Thread Giacinto Cifelli
Hi Ervin, according to the lex&yacc manual, there should be a yy_create_buffer called at the beginning, corresponding to the yy_delete_buffer. I don't see it in your code. the example is here: https://github.com/mbbill/flexbison/blob/master/flexbison/fb2-3.l Regards. Giacinto On Mon,