[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Initial %include implementation
From: |
Egor Pugin |
Subject: |
Initial %include implementation |
Date: |
Fri, 9 Nov 2018 01:24:42 +0300 |
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
- Initial %include implementation,
Egor Pugin <=
- Re: Initial %include implementation, Akim Demaille, 2018/11/10
- Re: Initial %include implementation, Egor Pugin, 2018/11/10
- Re: Initial %include implementation, Akim Demaille, 2018/11/11
- Re: Initial %include implementation, Egor Pugin, 2018/11/11
- Re: Initial %include implementation, David M. Warme, 2018/11/17
- Re: Initial %include implementation, Akim Demaille, 2018/11/20
- Re: Initial %include implementation, David M. Warme, 2018/11/26