OLD | NEW |
(Empty) | |
| 1 a = !b |
| 2 b = b != a |
| 3 c = ~b |
| 4 d = c + b |
| 5 d += a |
| 6 e = d - c |
| 7 e -= b |
| 8 f = a * b |
| 9 g = c ** d |
| 10 g *= f |
| 11 h = g / f |
| 12 h /= e |
| 13 i = h % g |
| 14 i %= f |
| 15 j = 1..5 |
| 16 k = 1...5 |
| 17 l = k < j |
| 18 m = l <= k |
| 19 n = m > l |
| 20 o = n >= m |
| 21 p = o ? n : m |
| 22 q ?= p |
| 23 r = q == p |
| 24 s := r |
| 25 t = s && r |
| 26 u = t || s |
| 27 v = u and t |
| 28 w = v or u |
| 29 x = 1 in w |
| 30 y = true is true |
| 31 z = true is not false |
| 32 aa = z isnt y |
| 33 ab = #fff is a 'rgba' |
| 34 ac = ab is defined |
| 35 ad = not ac |
| 36 |
| 37 ---------------------------------------------------- |
| 38 |
| 39 [ |
| 40 ["variable-declaration", [ |
| 41 ["variable", "a"], |
| 42 ["operator", "="], |
| 43 ["operator", "!"], |
| 44 "b" |
| 45 ]], |
| 46 ["variable-declaration", [ |
| 47 ["variable", "b"], |
| 48 ["operator", "="], |
| 49 " b ", |
| 50 ["operator", "!="], |
| 51 " a" |
| 52 ]], |
| 53 ["variable-declaration", [ |
| 54 ["variable", "c"], |
| 55 ["operator", "="], |
| 56 ["operator", "~"], |
| 57 "b" |
| 58 ]], |
| 59 ["variable-declaration", [ |
| 60 ["variable", "d"], |
| 61 ["operator", "="], |
| 62 " c ", |
| 63 ["operator", "+"], |
| 64 " b" |
| 65 ]], |
| 66 ["variable-declaration", [ |
| 67 ["variable", "d"], |
| 68 ["operator", "+="], |
| 69 " a" |
| 70 ]], |
| 71 ["variable-declaration", [ |
| 72 ["variable", "e"], |
| 73 ["operator", "="], |
| 74 " d ", |
| 75 ["operator", "-"], |
| 76 " c" |
| 77 ]], |
| 78 ["variable-declaration", [ |
| 79 ["variable", "e"], |
| 80 ["operator", "-="], |
| 81 " b" |
| 82 ]], |
| 83 ["variable-declaration", [ |
| 84 ["variable", "f"], |
| 85 ["operator", "="], |
| 86 " a ", |
| 87 ["operator", "*"], |
| 88 " b" |
| 89 ]], |
| 90 ["variable-declaration", [ |
| 91 ["variable", "g"], |
| 92 ["operator", "="], |
| 93 " c ", |
| 94 ["operator", "**"], |
| 95 " d" |
| 96 ]], |
| 97 ["variable-declaration", [ |
| 98 ["variable", "g"], |
| 99 ["operator", "*="], |
| 100 " f" |
| 101 ]], |
| 102 ["variable-declaration", [ |
| 103 ["variable", "h"], |
| 104 ["operator", "="], |
| 105 " g ", |
| 106 ["operator", "/"], |
| 107 " f" |
| 108 ]], |
| 109 ["variable-declaration", [ |
| 110 ["variable", "h"], |
| 111 ["operator", "/="], |
| 112 " e" |
| 113 ]], |
| 114 ["variable-declaration", [ |
| 115 ["variable", "i"], |
| 116 ["operator", "="], |
| 117 " h ", |
| 118 ["operator", "%"], |
| 119 " g" |
| 120 ]], |
| 121 ["variable-declaration", [ |
| 122 ["variable", "i"], |
| 123 ["operator", "%="], |
| 124 " f" |
| 125 ]], |
| 126 ["variable-declaration", [ |
| 127 ["variable", "j"], |
| 128 ["operator", "="], |
| 129 ["number", "1"], |
| 130 ["operator", ".."], |
| 131 ["number", "5"] |
| 132 ]], |
| 133 ["variable-declaration", [ |
| 134 ["variable", "k"], |
| 135 ["operator", "="], |
| 136 ["number", "1"], |
| 137 ["operator", "..."], |
| 138 ["number", "5"] |
| 139 ]], |
| 140 ["variable-declaration", [ |
| 141 ["variable", "l"], |
| 142 ["operator", "="], |
| 143 " k ", |
| 144 ["operator", "<"], |
| 145 " j" |
| 146 ]], |
| 147 ["variable-declaration", [ |
| 148 ["variable", "m"], |
| 149 ["operator", "="], |
| 150 " l ", |
| 151 ["operator", "<="], |
| 152 " k" |
| 153 ]], |
| 154 ["variable-declaration", [ |
| 155 ["variable", "n"], |
| 156 ["operator", "="], |
| 157 " m ", |
| 158 ["operator", ">"], |
| 159 " l" |
| 160 ]], |
| 161 ["variable-declaration", [ |
| 162 ["variable", "o"], |
| 163 ["operator", "="], |
| 164 " n ", |
| 165 ["operator", ">="], |
| 166 " m" |
| 167 ]], |
| 168 ["variable-declaration", [ |
| 169 ["variable", "p"], |
| 170 ["operator", "="], |
| 171 " o ", |
| 172 ["operator", "?"], |
| 173 " n ", |
| 174 ["punctuation", ":"], |
| 175 " m" |
| 176 ]], |
| 177 ["variable-declaration", [ |
| 178 ["variable", "q"], |
| 179 ["operator", "?="], |
| 180 " p" |
| 181 ]], |
| 182 ["variable-declaration", [ |
| 183 ["variable", "r"], |
| 184 ["operator", "="], |
| 185 " q ", |
| 186 ["operator", "=="], |
| 187 " p" |
| 188 ]], |
| 189 ["variable-declaration", [ |
| 190 ["variable", "s"], |
| 191 ["operator", ":="], |
| 192 " r" |
| 193 ]], |
| 194 ["variable-declaration", [ |
| 195 ["variable", "t"], |
| 196 ["operator", "="], |
| 197 " s ", |
| 198 ["operator", "&&"], |
| 199 " r" |
| 200 ]], |
| 201 ["variable-declaration", [ |
| 202 ["variable", "u"], |
| 203 ["operator", "="], |
| 204 " t ", |
| 205 ["operator", "||"], |
| 206 " s" |
| 207 ]], |
| 208 ["variable-declaration", [ |
| 209 ["variable", "v"], |
| 210 ["operator", "="], |
| 211 " u ", |
| 212 ["operator", "and"], |
| 213 " t" |
| 214 ]], |
| 215 ["variable-declaration", [ |
| 216 ["variable", "w"], |
| 217 ["operator", "="], |
| 218 " v ", |
| 219 ["operator", "or"], |
| 220 " u" |
| 221 ]], |
| 222 ["variable-declaration", [ |
| 223 ["variable", "x"], |
| 224 ["operator", "="], |
| 225 ["number", "1"], |
| 226 ["operator", "in"], |
| 227 " w" |
| 228 ]], |
| 229 ["variable-declaration", [ |
| 230 ["variable", "y"], |
| 231 ["operator", "="], |
| 232 ["boolean", "true"], |
| 233 ["operator", "is"], |
| 234 ["boolean", "true"] |
| 235 ]], |
| 236 ["variable-declaration", [ |
| 237 ["variable", "z"], |
| 238 ["operator", "="], |
| 239 ["boolean", "true"], |
| 240 ["operator", "is not"], |
| 241 ["boolean", "false"] |
| 242 ]], |
| 243 ["variable-declaration", [ |
| 244 ["variable", "aa"], |
| 245 ["operator", "="], |
| 246 " z ", |
| 247 ["operator", "isnt"], |
| 248 " y" |
| 249 ]], |
| 250 ["variable-declaration", [ |
| 251 ["variable", "ab"], |
| 252 ["operator", "="], |
| 253 ["hexcode", "#fff"], |
| 254 ["operator", "is a"], |
| 255 ["string", "'rgba'"] |
| 256 ]], |
| 257 ["variable-declaration", [ |
| 258 ["variable", "ac"], |
| 259 ["operator", "="], |
| 260 " ab ", |
| 261 ["operator", "is defined"] |
| 262 ]], |
| 263 ["variable-declaration", [ |
| 264 ["variable", "ad"], |
| 265 ["operator", "="], |
| 266 ["operator", "not"], |
| 267 " ac" |
| 268 ]] |
| 269 ] |
| 270 |
| 271 ---------------------------------------------------- |
| 272 |
| 273 Checks for all operators. |
OLD | NEW |