From: Clark C. Evans <cce@cl...> - 2002-09-11 00:23:11
Ok. I think there is concensus that now is the time to pull
types from the spec and put in a on-line type repository.
I was thinking that this could be a file which is stored
in YAML on the YAML.ORG website. Here is a strawman.
A question: Do all of these go into a single file?
contact: Yaml Team (yaml-core@...)
The integer represents arbitrarily sized finite mathematical integers.
Integers can be formatted using the familiar decimal notation, or may
have a leading '0x' to signal hexadecimal, or a leading '0' to signal
an octal base. Any ',' characters in the number are ignored, allowing
a readable representation of large values. In general, integers
representable using 32 binary digits should safely round-trip through
canonical: 0|-?[1-9][0-9]* # Canonical integer format
dec: [-+]?(0|[1-9])[0-9,]* # base 10 signed decimal integer
oct: [-+]?0[0-7,]+ # base 8 integer
hex: [-+]?0x[0-9a-fA-F,]+ # base 16 integer
Get latest updates about Open Source Projects, Conferences and News.