diff options
author | Ori Bernstein <ori@eigenstate.org> | 2014-01-23 10:43:33 -0500 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2014-01-23 10:43:33 -0500 |
commit | 22824dad97a68c10ce71cf7e623a12e51be80c43 (patch) | |
tree | bcdd6e06fe425da80a38ed969a2cf8f6e28ed540 /libstd/bigint.myr | |
parent | 6df4ee6319d8c943d766e99f231908831421e403 (diff) | |
download | mc-22824dad97a68c10ce71cf7e623a12e51be80c43.tar.gz |
Allow '_' as digit separator within integers.
Diffstat (limited to 'libstd/bigint.myr')
-rw-r--r-- | libstd/bigint.myr | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libstd/bigint.myr b/libstd/bigint.myr index a65d708..9d89e33 100644 --- a/libstd/bigint.myr +++ b/libstd/bigint.myr @@ -145,6 +145,9 @@ const bigparse = {str v = mkbigint(1) while str.len != 0 (c, str) = striter(str) + if c == '_' + continue + ;; val = charval(c, base) if val < 0 bigfree(a) |