Plan 9 from Bell Labs’s /usr/web/sources/contrib/maht/inferno/appl/cmd/yak/do.b

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


implement Do;

include "yak.m";
	yak : Yak;


include "draw.m";

Do: module
{
	init: fn(ctxt: ref Draw->Context, args: list of string);
};

init(nil: ref Draw->Context, nil: list of string)
{
	sys = load Sys Sys->PATH;
	yak = load Yak Yak->PATH;
	bufio = load Bufio Bufio->PATH;

	stdin := bufio->fopen(sys->fildes(0), Bufio->OREAD);

	yak->parse(stdin);
	sys->print("GOOD?\n");
}

# Put Limbo do

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].