aboutsummaryrefslogtreecommitdiff
path: root/plugins/syntax/nat_syntax.ml
diff options
context:
space:
mode:
authorPierre Letouzey2017-03-15 03:11:23 +0100
committerJason Gross2018-08-31 20:05:53 -0400
commit24ccc118ccfb4c1223cd37bd43c9d26a77851176 (patch)
treee5b801f21b2621686b6590af2f22ef8767b9c278 /plugins/syntax/nat_syntax.ml
parent006d2cd8c25dbcd787168c49e0ebfdf5dfc89c12 (diff)
Numeral Notation for nat
This parsing/printing method for nat should be just as fast as the previous dedicated code. Moreover, we could now parse large literals as nat numbers, by leaving them in a half-abstract form such as (Nat.of_uint 123456). This form is convertible to the closed (S (S (S ...))) form, so it shouldn't be a big deal for compatibility, except for if some Ltac stuff relies on (S ...) to be present after parsing. Of course, forcing the computation of a (Nat.of_uint ....) may take a while or raise a Stack Overflow.
Diffstat (limited to 'plugins/syntax/nat_syntax.ml')
0 files changed, 0 insertions, 0 deletions