Image Unit Processing Interface.
INFO: This is a mirror from GitHub.
github.com/sona-tau/iupi
1The following is a context-free grammar for the `iupi` language.
2
3```txt
4<language> ::= <unary operation> | <binary operation> | <color>
5
6<expr> ::= <binary operation> | <color>
7
8<unary operation> ::= <linear invert> | <value invert>
9
10<binary operation> ::= <add> | <multiply> | <subtract> | <divide>
11 <interpolate> | <max> | <min>
12
13<add> ::= <color> + <expr>
14<multiply> ::= <color> * <expr>
15<subtract> ::= <color> - <expr>
16<divide> ::= <color> / <expr>
17<interpolate> ::= <color> <float> <expr>
18<max> ::= <color> ^ <expr>
19<min> ::= <color> ! <expr>
20
21<value invert> ::= <expr> <^>
22<linear invert> ::= <expr> <|>
23
24<float> ::= .<decimals>
25
26<decimals> ::= <digit><decimals> | <epsilon>
27
28<digits> ::= <digits><digit> | <epsilon>
29<digit> ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
30
31<color> ::= (<digits>,<digits>,<digits>)
32
33<epsilon> ::= ''
34```