[00:23:33] *** Joins: Eidel_ (~eidel@c83-249-241-114.bredband.comhem.se) [00:26:32] *** Quits: Eidel (~eidel@c83-249-241-114.bredband.comhem.se) (Ping timeout: 245 seconds) [01:34:51] *** Joins: Eidel (~eidel@c83-249-241-114.bredband.comhem.se) [01:37:52] *** Quits: Eidel_ (~eidel@c83-249-241-114.bredband.comhem.se) (Ping timeout: 240 seconds) [08:47:38] *** Quits: spectie (~spectie@unaffiliated/spectie) (*.net *.split) [08:47:50] *** Quits: inariksit (~inari@ksit.fixme.fi) (*.net *.split) [08:59:29] *** Joins: inariksit (~inari@ksit.fixme.fi) [09:09:35] *** Joins: spectie (~spectie@unaffiliated/spectie) [09:22:02] *** Joins: spectre (~fran@195.69.7.6) [09:29:01] *** Quits: spectie (~spectie@unaffiliated/spectie) (*.net *.split) [09:29:13] *** Quits: inariksit (~inari@ksit.fixme.fi) (*.net *.split) [09:32:19] *** Joins: inariksit (~inari@ksit.fixme.fi) [09:32:19] *** Joins: spectie (~spectie@unaffiliated/spectie) [09:36:47] *** Quits: inariksit (~inari@ksit.fixme.fi) (*.net *.split) [09:40:39] *** Joins: inariksit (~inari@ksit.fixme.fi) [09:44:45] *** Quits: spectre (~fran@195.69.7.6) (Ping timeout: 246 seconds) [10:05:33] *** Joins: chru (~cunger@2001:638:504:2099:5d5d:d381:f03a:ea86) [11:55:24] *** Quits: inariksit (~inari@ksit.fixme.fi) (*.net *.split) [11:56:13] *** Joins: inariksit (~inari@ksit.fixme.fi) [12:44:09] *** Joins: spectre (~fran@80-254-69-133.dynamic.monzoon.net) [12:53:35] *** Quits: spectre (~fran@80-254-69-133.dynamic.monzoon.net) (Ping timeout: 272 seconds) [14:40:41] *** Joins: shadowdaemon (shadowdaem@gateway/shell/anapnea.net/x-ssdljpovbptgmxkh) [16:08:05] *** Quits: crazydiamond (~crazydiam@dynamic-178-141-71-228.kirov.comstar-r.ru) (Ping timeout: 244 seconds) [16:15:07] Say I have "fun Test : Question -> Answer" and "def Test q = Yes", how do I linearize the "Yes" result from "Test"? [16:15:53] The idea here is to create a simple question and answer system. [16:37:11] hmm you probably need fun and lin rules for the Yes function [16:37:26] fun Yes : Answer [16:37:37] lincat Answer = {s : Str} [16:37:44] lin Yes = {s = "yes"} [16:40:17] or even: lincat Answer = Utt; lin Yes = yes_Utt; [16:43:08] :) [16:54:55] I have fun and lin rules for Yes and No. [16:55:49] The problem is that when I try to lin my question function, I can't access the result from the def rule. [16:56:48] what are you using the def function for? i.e. why is it "def Test q = Yes" and not "lin Test q"? [16:57:56] "lin Test q = Yes", i mean... [16:58:53] I'm trying to do the logic in abstract. [17:00:29] https://bpaste.net/show/4f4af24bb034 <- this is what I have. [17:00:49] I'm pretty noob at this. =) [17:02:28] What I'd like is to be able to "lin Exchange (Ask AskLike Cake)" and get a linearized string result from Yes. [17:09:02] i think this requires telling GF to expand the defs, which used to be possible with the put_tree command, but i think this changed. another thing that you need to do, i think, is declare AskLike, AskWant, Cake and Fudge as data (not as fun), otherwise they will be treated as variables in your defs. and i'm not very familiar with how defs work as well... [17:10:08] Ah okay, thanks. I'll give that a go. [17:11:24] my general experience is that for most of the logic you want (especially when it involves pattern matching), it's easier to do it outside of GF ;-) [17:14:58] hmm [17:15:05] You might be right. [17:15:45] still would be nice to see how much you actually *can* do in GF... [17:20:24] Indeed. [18:06:52] *** Parts: chru (~cunger@2001:638:504:2099:5d5d:d381:f03a:ea86) () [21:47:09] *** Joins: bakibour (549feaf8@gateway/web/freenode/ip.84.159.234.248) [21:47:13] Hidiho [22:04:32] *** Joins: jmvanel (~jmvanel@82.0.88.79.rev.sfr.net) [22:33:38] *** Parts: bakibour (549feaf8@gateway/web/freenode/ip.84.159.234.248) ()