Damien George
5010d1958f
py/lexer: Simplify and reduce code size for operator tokenising.
...
By removing the 'E' code from the operator token encoding mini-language the
tokenising can be simplified. The 'E' code was only used for the !=
operator which is now handled as a special case; the optimisations for the
general case more than make up for the addition of this single, special
case. Furthermore, the . and ... operators can be handled in the same way
as != which reduces the code size a little further.
This simplification also removes a "goto".
Changes in code size for this patch are (measured in bytes):
bare-arm: -48
minimal x86: -64
unix x86-64: -112
unix nanbox: -64
stmhal: -48
cc3200: -48
esp8266: -76
2017-03-29 10:56:52 +11:00
..
2017-03-28 22:37:26 +11:00
2017-01-03 15:40:50 +11:00
2016-12-09 16:51:49 +11:00
2016-12-09 22:50:58 +11:00
2016-12-09 22:50:58 +11:00
2016-12-09 22:50:58 +11:00
2016-12-09 16:51:49 +11:00
2016-12-09 22:50:58 +11:00
2016-12-09 22:50:58 +11:00
2016-12-09 22:54:45 +11:00
2016-12-09 22:50:58 +11:00
2016-12-09 22:50:58 +11:00
2017-02-08 10:48:51 +11:00
2017-02-16 18:38:06 +11:00
2017-03-28 22:37:26 +11:00
2017-03-17 16:50:19 +11:00
2017-01-17 22:53:06 +03:00
2017-01-22 11:56:16 +11:00
2017-03-28 22:37:26 +11:00
2017-01-22 12:12:54 +11:00
2017-03-28 22:37:26 +11:00
2017-03-27 11:27:08 +11:00
2016-12-09 17:06:21 +11:00
2017-02-16 18:38:06 +11:00
2017-03-23 16:36:08 +11:00
2016-12-21 11:52:05 +11:00
2016-11-16 16:14:14 +11:00
2017-02-24 13:43:43 +11:00
2016-12-09 21:23:17 +11:00
2017-03-23 16:36:08 +11:00
2017-01-19 23:32:16 +11:00
2017-02-17 12:48:45 +11:00
2017-03-29 10:56:52 +11:00
2017-02-17 12:44:24 +11:00
2017-03-03 11:21:19 +11:00
2016-12-27 01:05:37 +03:00
2016-11-08 14:28:30 +11:00
2017-03-15 21:50:48 +11:00
2017-03-28 22:37:26 +11:00
2017-03-23 22:57:08 +11:00
2017-03-20 15:20:26 +11:00
2017-01-17 22:53:06 +03:00
2017-03-06 12:15:25 +01:00
2017-03-28 22:37:26 +11:00
2017-02-22 12:58:11 +11:00
2017-03-20 15:20:26 +11:00
2017-03-15 17:25:12 +11:00
2017-03-24 18:43:28 +11:00
2017-02-16 16:51:16 +11:00
2017-02-16 16:51:16 +11:00
2017-02-16 18:38:06 +11:00
2017-03-06 17:13:16 +11:00
2017-03-08 22:36:02 +11:00
2017-03-26 00:33:23 +03:00
2017-03-06 17:13:16 +11:00
2017-03-28 22:37:26 +11:00
2017-03-26 19:20:06 +11:00
2017-03-28 22:37:26 +11:00
2017-02-16 16:51:16 +11:00
2017-02-16 16:51:16 +11:00
2016-11-22 01:33:55 +03:00
2017-02-16 16:51:17 +11:00
2017-02-04 00:23:56 +11:00
2017-03-28 22:37:26 +11:00
2017-02-16 18:38:06 +11:00
2017-02-16 16:51:17 +11:00
2017-02-16 16:51:17 +11:00
2017-02-16 18:38:06 +11:00
2017-02-03 00:01:37 +11:00
2017-03-17 16:39:13 +11:00
2017-03-28 22:37:26 +11:00
2017-02-16 18:38:06 +11:00
2017-03-10 00:22:53 +01:00
2017-03-28 22:37:26 +11:00
2017-03-23 23:51:35 +11:00
2017-02-02 22:23:10 +03:00
2017-03-23 16:17:40 +11:00
2017-02-16 16:51:16 +11:00
2017-03-27 12:19:24 +11:00
2017-01-26 23:30:38 +11:00
2017-01-26 23:30:38 +11:00
2017-03-24 17:25:25 +11:00
2017-03-28 22:37:26 +11:00
2017-02-16 18:38:06 +11:00
2017-03-23 16:17:40 +11:00
2017-02-16 18:38:06 +11:00
2017-02-16 19:11:34 +11:00
2017-03-23 16:17:40 +11:00
2017-02-16 16:51:16 +11:00
2017-03-28 22:37:26 +11:00
2017-03-23 16:17:40 +11:00
2017-03-23 16:17:40 +11:00
2017-02-16 18:38:06 +11:00
2017-03-28 22:37:26 +11:00
2017-02-16 18:38:06 +11:00
2017-02-24 14:56:37 +11:00
2016-11-15 16:48:48 +11:00
2017-03-28 22:37:26 +11:00
2017-03-14 11:52:05 +11:00
2016-11-16 18:13:50 +11:00
2017-03-20 15:20:26 +11:00
2016-11-02 23:15:41 +11:00
2017-01-27 17:19:06 +11:00
2017-03-14 11:52:05 +11:00
2017-03-14 11:52:05 +11:00
2017-02-16 18:38:06 +11:00
2017-03-28 22:37:26 +11:00
2017-03-24 18:43:28 +11:00
2017-03-20 15:20:26 +11:00
2017-03-28 22:37:26 +11:00
2017-02-16 18:38:06 +11:00
2016-11-14 00:24:22 +03:00
2016-12-02 16:37:29 +11:00
2016-12-28 17:50:10 +11:00
2017-03-27 10:52:04 +11:00
2017-02-16 18:38:06 +11:00