hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 86be096d808ed770b717df70dd2a93c7ad8c9c34
parent 49991edd158bdd0a67c951ffd0f6b66dba0b9e34
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sun, 20 Mar 2022 00:25:37 -0400

hare::types: add documentation for builtin types

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mhare/types/builtins.ha | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/hare/types/builtins.ha b/hare/types/builtins.ha @@ -1,90 +1,105 @@ // License: MPL-2.0 // (c) 2021 Drew DeVault <sir@cmpwn.com> +// [[_type]] representation of bool. export const builtin_bool: _type = _type { repr = builtin::BOOL, sz = 1, align = 1, ... }; +// [[_type]] representation of char. export const builtin_char: _type = _type { repr = builtin::CHAR, sz = 1, align = 1, ... }; +// [[_type]] representation of f32. export const builtin_f32: _type = _type { repr = builtin::F32, sz = 4, align = 4, ... }; +// [[_type]] representation of f64. export const builtin_f64: _type = _type { repr = builtin::F64, sz = 8, align = 8, ... }; +// [[_type]] representation of i8. export const builtin_i8: _type = _type { repr = builtin::I8, sz = 1, align = 1, ... }; +// [[_type]] representation of i16. export const builtin_i16: _type = _type { repr = builtin::I16, sz = 2, align = 2, ... }; +// [[_type]] representation of i32. export const builtin_i32: _type = _type { repr = builtin::I32, sz = 4, align = 4, ... }; +// [[_type]] representation of i64. export const builtin_i64: _type = _type { repr = builtin::I64, sz = 8, align = 8, ... }; +// [[_type]] representation of null. export const builtin_null: _type = _type { repr = builtin::NULL, sz = 0, align = 0, ... }; +// [[_type]] representation of rune. export const builtin_rune: _type = _type { repr = builtin::RUNE, sz = 4, align = 4, ... }; +// [[_type]] representation of u8. export const builtin_u8: _type = _type { repr = builtin::U8, sz = 1, align = 1, ... }; +// [[_type]] representation of u16. export const builtin_u16: _type = _type { repr = builtin::U16, sz = 2, align = 2, ... }; +// [[_type]] representation of u32. export const builtin_u32: _type = _type { repr = builtin::U32, sz = 4, align = 4, ... }; +// [[_type]] representation of u64. export const builtin_u64: _type = _type { repr = builtin::U64, sz = 8, align = 8, ... }; +// [[_type]] representation of void. export const builtin_void: _type = _type { repr = builtin::VOID, sz = 0, align = 0,