|
|
str | compile_n = lambda x: 'n' |
| |
|
str | compile_i = lambda x: 'i' |
| |
|
str | compile_v = lambda x: 'v' |
| |
|
str | compile_w = lambda x: 'w' |
| |
|
str | compile_f = lambda x: 'f' |
| |
|
str | compile_t = lambda x: 't' |
| |
|
str | compile_c = lambda x: 'c' |
| |
|
str | compile_e = lambda x: 'e' |
| |
|
str | compile_value = lambda x, v(v) |
| |
|
| compile_and = _binary_compiler('(%s && %s)') |
| |
|
| compile_or = _binary_compiler('(%s || %s)') |
| |
|
| compile_not = _unary_compiler('(!%s)') |
| |
|
| compile_mod = _binary_compiler('(%s %% %s)') |
| |
|
| compile_is = _binary_compiler('(%s == %s)') |
| |
|
| compile_isnot = _binary_compiler('(%s != %s)') |
| |
The compilers are able to transform the expressions into multiple
output formats.