Hi, I'd like to send initial %include implementation.
For some reason I did not succeed in inserting %include into the grammar part - so I commented %empty block in epiloque.opt. Error was: parse-gram.y:779.3-8: error: rule useless in parser due to conflicts [-Werror=other] %empty ^^^^^^ This is not right, maybe someone could help me or fix it in further patches. I did couple of fast tests locally, but did not include any in the patch yet. Also I disable some caret code which becomes incorrect with this dummy implementation. (I'm very new to C and bison internals. My primary OS is Windows, so Changes: * src/files.h, src/files.c: Add include dirs counters, array. * src/files.h, src/files.c: Add include dirs counters, array. * src/getargs.c: Add -I (--include) option * src/location.c: Do not run location_caret() when %include's provided. * src/parse-gram.y: Implement %include directive. * src/scan-gram.l: Add %include token. -- Egor Pugin
include.diff
Description: Binary data
