shithub: mc

ref: 82532ed187c6041e7dff5505de21e95d7fd380d9
dir: /types.myr/

View raw version
use std

pkg bld =
	type parser = struct
		cmd	: byte[:][:]
		/* 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[:][:])#
		sources	: std.htab(byte[:], byte[:])#
		updated	: std.htab(byte[:], bool)#
	;;

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

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