[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Further C++ operators for position
From: |
Matthew Fernandez |
Subject: |
Further C++ operators for position |
Date: |
Sun, 3 Nov 2019 20:27:54 -0800 |
Hello Bison folk,
I recently had a use case for comparing source positions coming out of a C++
Bison-produced parser. While operator== and operator!= are implemented on the
position class [0], the ordering operators (<, <=, >, >=) are not. It was
relatively straightforward to implement these myself, but I was wondering if
these were of wider use and should live upstream in Bison’s position
implementation. Perhaps there is some history behind this or some deliberate
omission of these operators? Just wanted to ask if there’s a reason these don’t
already exist before thinking about posting a patch. I’m not subscribed to the
list, so please CC me in replies.
Thanks,
Matthew
[0]:
https://www.gnu.org/software/bison/manual/html_node/C_002b_002b-position.html#index-operator_003d_003d-on-position
- Further C++ operators for position,
Matthew Fernandez <=
- Re: Further C++ operators for position, Akim Demaille, 2019/11/04
- Re: Further C++ operators for position, Christian Schoenebeck, 2019/11/04
- Re: Further C++ operators for position, Matthew Fernandez, 2019/11/04
- Re: Further C++ operators for position, Akim Demaille, 2019/11/04
- Re: Further C++ operators for position, Hans Åberg, 2019/11/04
- Re: Further C++ operators for position, Matthew Fernandez, 2019/11/04
- Re: Further C++ operators for position, Akim Demaille, 2019/11/05
- Re: Further C++ operators for position, Matthew Fernandez, 2019/11/05
- Re: Further C++ operators for position, Akim Demaille, 2019/11/05
- Re: Further C++ operators for position, Akim Demaille, 2019/11/05