You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seems to be that it can check if it's been set already.
And perhaps that the [CONST_]OPERATORS map can be hidden, can also be considered an advantage, but it's a stretch...
OTOH:
If really checking for existence (instead of overriding), errors would need to be handled by callers...
Also, custom OPCODEs would probably still need to be defined symbolically -- somewhere... --, to be practical for actually defining grammar rules. :-/
Use it in init(), and also in test/extending!
But, again, there should be two sets: one for const, another for non-const, right? What does C++ do nowadays with Function types differing in c-v only?
! Hehh, congratulations!... :) It doesn't accept a param. with a c-v mismatch, yet it refuses to dispatch on it, so: "ambiguous call" to define, if trying to overload it based on the c-v diff... The good old begin/end cbegin/cend crap, still...
Leaving it commented out for now.
The text was updated successfully, but these errors were encountered:
xparq
changed the title
Parser::define(OPCODE, OPERATOR)
Parsing::define(OPCODE, OPERATOR)
Sep 8, 2023
Well, but its only benefit compared to
seems to be that it can check if it's been set already.
And perhaps that the [CONST_]OPERATORS map can be hidden, can also be considered an advantage, but it's a stretch...
OTOH:
If really checking for existence (instead of overriding), errors would need to be handled by callers...
Also, custom OPCODEs would probably still need to be defined symbolically -- somewhere... --, to be practical for actually defining grammar rules. :-/
Use it in
init()
, and also intest/extending
!But, again, there should be two sets: one for const, another for non-const, right? What does C++ do nowadays with
Function
types differing in c-v only?! Hehh, congratulations!... :) It doesn't accept a param. with a c-v mismatch, yet it refuses to dispatch on it, so: "ambiguous call" to define, if trying to overload it based on the c-v diff... The good old begin/end cbegin/cend crap, still...
The text was updated successfully, but these errors were encountered: