Redesign Match to act more like other Value types.
MatchVector, AnnotationMatch, TokenMatch are now MatchData MatchData is value_type of Match which now has get_value/set_value Match has also copy construction working properly now Default value for Match holds MatchVector so adding $m:_M var in grammar works as intended.
Showing
- libwccl/ops/match/conditions/tokencondition.cpp 1 addition, 1 deletionlibwccl/ops/match/conditions/tokencondition.cpp
- libwccl/ops/match/matchresult.h 28 additions, 0 deletionslibwccl/ops/match/matchresult.h
- libwccl/parser/grammar.g 14 additions, 1 deletionlibwccl/parser/grammar.g
- libwccl/values/annotationmatch.cpp 0 additions, 7 deletionslibwccl/values/annotationmatch.cpp
- libwccl/values/annotationmatch.h 12 additions, 7 deletionslibwccl/values/annotationmatch.h
- libwccl/values/match.cpp 0 additions, 5 deletionslibwccl/values/match.cpp
- libwccl/values/match.h 53 additions, 6 deletionslibwccl/values/match.h
- libwccl/values/matchdata.h 46 additions, 0 deletionslibwccl/values/matchdata.h
- libwccl/values/matchvector.cpp 21 additions, 7 deletionslibwccl/values/matchvector.cpp
- libwccl/values/matchvector.h 21 additions, 7 deletionslibwccl/values/matchvector.h
- libwccl/values/tokenmatch.cpp 0 additions, 7 deletionslibwccl/values/tokenmatch.cpp
- libwccl/values/tokenmatch.h 12 additions, 7 deletionslibwccl/values/tokenmatch.h
- tests/match.cpp 1 addition, 1 deletiontests/match.cpp
libwccl/values/matchdata.h
0 → 100644
Please register or sign in to comment