shrub/j/f/al.c

42 lines
703 B
C
Raw Normal View History

2013-12-27 06:43:25 +04:00
/* j/6/al.c
**
** This file is in the public domain.
*/
#include "all.h"
2014-09-04 07:10:43 +04:00
2013-12-27 06:43:25 +04:00
/* ~(. al gen)
*/
2014-09-06 00:13:24 +04:00
static u3_noun
_al_core(u3_noun van,
u3_noun gen)
2013-12-27 06:43:25 +04:00
{
2014-11-18 00:56:51 +03:00
u3_noun ter = u3r_at(u3x_con_3, van);
2014-11-06 03:20:01 +03:00
u3_noun gat = u3j_hook(u3k(ter), "al");
2014-09-04 01:33:18 +04:00
2014-11-18 00:56:51 +03:00
return u3i_molt(gat, u3x_sam, u3k(gen), 0);
2013-12-27 06:43:25 +04:00
}
/* ~(bunt al gen)
*/
2014-09-06 00:13:24 +04:00
u3_noun
2014-11-06 22:13:57 +03:00
u3qfl_bunt(u3_noun van, u3_noun gen)
2013-12-27 06:43:25 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun cor = _al_core(van, gen);
2013-12-27 06:43:25 +04:00
2014-11-06 03:20:01 +03:00
return u3j_hook(cor, "bunt");
2013-12-27 06:43:25 +04:00
}
2014-01-04 11:28:16 +04:00
/* ~(whip al gen)
*/
2014-09-06 00:13:24 +04:00
u3_noun
2014-11-06 22:13:57 +03:00
u3qfl_whip(u3_noun van,
2014-09-06 00:13:24 +04:00
u3_noun gen,
u3_noun axe) //
2014-01-04 11:28:16 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun cor = _al_core(van, gen);
2014-11-06 03:20:01 +03:00
u3_noun gat = u3j_hook(u3k(cor), "whip");
2014-01-04 11:28:16 +04:00
2014-11-06 03:20:01 +03:00
return u3n_slam_on(gat, u3k(axe));
2014-01-04 11:28:16 +04:00
}