MarketSquare / MarketSquare/Rammbock
Bitwise operation is not supported by Conditional
- Dominant language
- Python
- Stars
- 64
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Description
Unfortunately classes `ConditionParser` and `ExpressionEvaluator` do not support bitwise operations such as flag parsing
```
My_Field
u8 flags 0
conditional flags & ${0x00000001} conditional_field # Same for 'flags & ${0x00000001} != 0'
My_Conditional_Field
end conditional
```
Errors are:
```
IllegalConditionException: Unsupported operation: flags & 1
IllegalConditionException: Given name condition: flags & 1 not found in message fields
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the ConditionParser and ExpressionEvaluator classes and tracing how the sample conditional is parsed and evaluated. Use the reported flags & 1 example and its IllegalConditionException messages as the baseline; done when the conditional can evaluate that bitwise flag expression without those errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100