shithub: mc

ref: f5761a93a98d27b6f05a31f4bdc3338ae244c86c
dir: /types.myr/

View raw version
use std

pkg bld =
	type parser = struct
		/* parse input */
		data	: byte[:]
		rest	: byte[:]
		fname	: byte[:]
		line	: int

		/* build params */
		targs	: target[:]
		prefix	: byte[:]
		system	: byte[:]
		arch	: byte[:]
	;;

	type depgraph = struct
		roots	: byte[:][:]
		deps	: std.htab(byte[:], byte[:][:])#
		libs	: std.htab(byte[:], byte[:][:])#
	;;

	type myrtarg = struct
		name	: byte[:]
		inputs	: byte[:][:]
		install	: bool
		ldscript	: byte[:]
		runtime	: byte[:]
	;;

	type target = union
		`Bin	myrtarg
		`Lib	myrtarg
		`Sub	byte[:][:]
		`Man	byte[:][:]
	;;
;;