Brightify / ReactantUI

Reactant extension for UI declaration in XML
MIT License
19 stars 2 forks source link

Add Layout Conditions #75

Closed MatyasKriz closed 6 years ago

MatyasKriz commented 6 years ago

EBNF as of making this parser: CONDITION := '[' EXPRESSION ']'; EXPRESSION := TERM [ or TERM ]; TERM := COMPARISON [ and COMPARISON ]; COMPARISON := FACTOR [ ( == | != | ':gt' | ':gte' | ':lt' | ':lte' ) FACTOR ]; FACTOR := [ '!' ] ( '(' EXPRESSION ')' | IDENTIFIER | FLOAT_NUMBER ); FLOAT_NUMBER := { same as Swift's Float } IDENTIFIER := { all cases in the ConditionStatement enum };

Also in this PR: