Skip to content

Instantly share code, notes, and snippets.

@ghalimi ghalimi/types.json
Last active Sep 24, 2015

Embed
What would you like to do?
{
"types": {
"int8" : { "name": "Signed 8 bits integer" , "c": "int8_t" },
"int16" : { "name": "Signed 16 bits integer" , "c": "int16_t" },
"int32" : { "name": "Signed 32 bits integer" , "c": "int32_t" },
"int64" : { "name": "Signed 64 bits integer" , "c": "int64_t" },
"uint8" : { "name": "Unsigned 8 bits integer" , "c": "uint8_t" },
"uint16" : { "name": "Unsigned 16 bits integer" , "c": "uint16_t" },
"uint32" : { "name": "Unsigned 32 bits integer" , "c": "uint32_t" },
"uint64" : { "name": "Unsigned 64 bits integer" , "c": "uint64_t" },
"float32" : { "name": "Float" , "c": "float" },
"float64" : { "name": "Double" , "c": "double" },
"boolean" : { "name": "Boolean" , "c": "bool" }
},
"classes": {
"binary" : { "name": "Binary 32 bits number" , "c": "binary" },
"hexadecimal" : { "name": "Hexadecimal number" , "c": "hexadecimal" },
"octal" : { "name": "Octal number" , "c": "octal" },
"complex32" : { "name": "Complex 32 bits number" , "c": "complex<float>" },
"complex64" : { "name": "Complex 64 bits number" , "c": "complex<double>" },
"inumber" : { "name": "Complex number as string" , "c": "inumber" },
"string" : { "name": "String" , "c": "string" },
"date" : { "name": "Date" , "c": "date" },
"time" : { "name": "Time" , "c": "time" },
"timestamp" : { "name": "Timestamp" , "c": "timestamp" },
"expression" : { "name": "Expression" , "c": "expression" },
"object" : { "name": "Object" , "c": "object" },
"regexp" : { "name": "Regular expression" , "c": "regexp" }
},
"aliases": {
"integer" : { "name": "Signed integer" , "types": ["int8", "int16", "int32", "int64"] },
"uinteger" : { "name": "Unsigned integer" , "types": ["uint8", "uint16", "uint32", "uint64"] },
"float" : { "name": "Floating point number" , "types": ["float32", "float64"] },
"real" : { "name": "Real number" , "types": ["integer", "float"] },
"complex" : { "name": "Complex number" , "types": ["complex32", "complex64"] },
"number" : { "name": "Real or complex number" , "types": ["real", "complex"] }
},
"suffixes": {
"*" : { "name": "Tensor" , "dimensions": ["", "[]", "[][]"] }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.