Skip to content

Bitwise operation is not supported by Conditional #86

@dzvancuks

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions