hare

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

commit 9c44e3976bb94933813866027721e858782638ce
parent 00aecf1ed02d2a1c2a2cdda588f1f9eebbdf1c8d
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri,  3 Sep 2021 09:25:34 +0200

hare::unit: more docs

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mhare/unit/expr.ha | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/hare/unit/expr.ha b/hare/unit/expr.ha @@ -11,20 +11,25 @@ export type expr = struct { expr: (access | bindings | compound | constant | _return), }; +// An access expression. export type access = (access_object | access_field | access_index | access_tuple); +// An access expression for an object. export type access_object = *object; +// An access expression for a struct field. export type access_field = struct { object: *expr, field: const *types::struct_field, }; +// An access expression for a slice or array index. export type access_index = struct { object: *expr, index: *expr, }; +// An access expression for a tuple value. export type access_tuple = struct { object: *expr, value: const *types::tuple_value,