Skip to content

Bitwise operation is not supported by Conditional #86

Description

@dzvancuks

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions