Re: Supporting C++ style comments in gpib.conf?

dave penkler <[email protected]> Wed, 28 Aug 2024 15:46:16 +0200
Newsgroups gmane.linux.hardware.gpib.general
Message-ID <CAL=kjP0MOjJndzHGcTEKFX-v7hCaCk0n_JQCHxa=547B_0bzrg@mail.gmail.com>
Hi Dirk,
C++ style comments are easier to add and remove when editing gpib.conf
and any improvement to the error messages is helpful - please send a patch.
cheers,
-Dave

On Mon, 26 Aug 2024 at 16:38, Dirk Niggemann <[email protected]>
wrote:

> Hi,
>
> I modified the lexical analyzer for gpib.conf (ibConfLex.l) to support
> C++  style comments (// to end of line is a comment).
> The only real reason for doing it is that the output from gpib_config is
> totally unhelpful when you use this comment style not knowing any better
> and it breaks.
>
> Is the file modelled on any other system that this would be totally
> incompatible with?
>
> I‘m also thinking of going in and dealing with stray characters in the
> debug/error output as well since the parser seems very brittle and just
> tells you you have an error at line 0 when a stray character (like ‘/‘ from
> an incorrectly used c++ comment) turns up…
>
> Is there any value to this and should I submit a patch?
>
> Regards,
>
> Dirk Niggemann
>
> _______________________________________________
> Linux-gpib-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general
>

_______________________________________________
Linux-gpib-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-gpib-general