1# SPDX-license-identifier: Apache-2.0 2 3from enum import Enum 4 5class MesonOperator(Enum): 6 # Arithmetic 7 PLUS = '+' 8 MINUS = '-' 9 TIMES = '*' 10 DIV = '/' 11 MOD = '%' 12 13 UMINUS = 'uminus' 14 15 # Logic 16 NOT = 'not' 17 18 # Should return the boolsche interpretation of the value (`'' == false` for instance) 19 BOOL = 'bool()' 20 21 # Comparision 22 EQUALS = '==' 23 NOT_EQUALS = '!=' 24 GREATER = '>' 25 LESS = '<' 26 GREATER_EQUALS = '>=' 27 LESS_EQUALS = '<=' 28 29 # Container 30 IN = 'in' 31 NOT_IN = 'not in' 32 INDEX = '[]' 33