diff options
author | Damien George <damien.p.george@gmail.com> | 2015-02-08 01:57:40 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-02-08 01:57:40 +0000 |
commit | 7d414a1b52d193bab2c94cf56932e1eba23ba542 (patch) | |
tree | 69f6840e4f825ffc1047fe7cb0f52eba27b20d86 /py/emit.h | |
parent | 5f97aaeca4dc607a2d32e758c3ef6131ffb168a6 (diff) |
py: Parse big-int/float/imag constants directly in parser.
Previous to this patch, a big-int, float or imag constant was interned
(made into a qstr) and then parsed at runtime to create an object each
time it was needed. This is wasteful in RAM and not efficient. Now,
these constants are parsed straight away in the parser and turned into
objects. This allows constants with large numbers of digits (so
addresses issue #1103) and takes us a step closer to #722.
Diffstat (limited to 'py/emit.h')
-rw-r--r-- | py/emit.h | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -77,8 +77,6 @@ typedef struct _emit_method_table_t { void (*import_star)(emit_t *emit); void (*load_const_tok)(emit_t *emit, mp_token_kind_t tok); void (*load_const_small_int)(emit_t *emit, mp_int_t arg); - void (*load_const_int)(emit_t *emit, qstr qst); - void (*load_const_dec)(emit_t *emit, qstr qst); void (*load_const_str)(emit_t *emit, qstr qst, bool bytes); void (*load_const_obj)(emit_t *emit, void *obj); void (*load_null)(emit_t *emit); |