00:00:00 --- log: started forth/14.02.16 00:09:08 --- quit: kumul (Read error: Connection reset by peer) 00:30:30 --- join: true-grue (~quassel@128-72-19-35.broadband.corbina.ru) joined #forth 00:37:38 --- join: asie (~textual@078088168214.elblag.vectranet.pl) joined #forth 01:29:42 --- quit: asie (Quit: I'll probably come back in either 20 minutes or 8 hours.) 02:29:58 --- join: Azel (~Azel@ANice-653-1-442-87.w86-193.abo.wanadoo.fr) joined #forth 02:39:25 --- quit: kludge` (Ping timeout: 272 seconds) 02:44:28 --- join: kludge` (~comet@unaffiliated/espiral) joined #forth 03:13:39 --- join: fantazo (~fantazo@213.129.230.10) joined #forth 04:07:51 --- join: pvt_petey (~pvt_petey@88-107-48-71.dynamic.dsl.as9105.com) joined #forth 04:27:52 --- part: dys left #forth 05:40:45 --- join: pvt_pete_ (~pvt_petey@88-107-48-71.dynamic.dsl.as9105.com) joined #forth 05:42:57 --- quit: pvt_petey (Ping timeout: 260 seconds) 05:48:52 --- join: Zarutian (~zarutian@194-144-84-110.du.xdsl.is) joined #forth 06:09:34 --- quit: Azel (Ping timeout: 272 seconds) 06:10:29 --- join: Azel (~Azel@ANice-653-1-442-87.w86-193.abo.wanadoo.fr) joined #forth 06:23:13 --- join: pvt_petey (~pvt_petey@88-107-48-71.dynamic.dsl.as9105.com) joined #forth 06:23:32 --- quit: pvt_pete_ (Ping timeout: 260 seconds) 06:34:16 --- quit: ASau` (Ping timeout: 272 seconds) 06:42:46 --- join: ASau (~user@p54AFEE4D.dip0.t-ipconnect.de) joined #forth 07:17:59 --- quit: Azel (Quit: Konversation terminated!) 07:23:37 a newbie question 07:23:42 I've installed gforth 07:24:49 but I can't seem to evaluate an expression like 34+. 07:25:03 it's giving me $104341A20 throw 07:25:04 $104357CA8 no.extensions 07:25:06 $104341CE0 interpreter-notfound1 07:26:43 --- quit: Zarutian (Quit: Zarutian) 07:38:25 evening 07:39:10 pvt_petey: I take it you're typing that with all the appropriate spaces? 07:39:35 ah that might be it 07:39:36 sorry 07:41:10 I guess a side question : 07:41:20 for RPN if I have an expression like 1+1=2 07:41:34 how can I express that - clearly equals is forbidden 07:47:15 you type in 1 1 + 2 = . 07:49:47 --- join: Zarutian (~zarutian@194-144-84-110.du.xdsl.is) joined #forth 07:51:59 if I copy and paste that in exactly it's telling me 'unexpected '=') 07:55:04 --- quit: itsy (Ping timeout: 252 seconds) 07:56:43 --- quit: john_metcalf (Ping timeout: 252 seconds) 08:18:13 pvt_petey: the = in that context isn't used 08:18:24 pvt_petey: RPN doesn't really work that way 08:18:38 if you do 1 1 + then the stack contains 2 08:20:27 ok 08:20:51 so.. you can't check an infix statement like 1 + 1 =2 08:20:58 no 08:21:15 http://en.wikipedia.org/wiki/Reverse_Polish_notation 08:21:40 pvt_petey: Forth is really pretty simple 08:22:07 it looks at a line, if something looks like a number it puts it on the stack and if something looks like a word it tries to run it 08:22:13 so 08:22:16 2 2 + . 08:22:35 that will read until the first space, oh look, it's a 2, let's stack it 08:22:50 read until the next space, oh look, it's a 2, let's stack that too 08:23:11 read until the next space, that's a +, that isn't a number so search down the vocabulary until we find + 08:23:31 + pops the top two numbers off the stack, adds them, and pushes the result back onto the stack 08:23:38 ok 08:23:46 to give some context 08:23:50 read until the next space, that's a . which looks like a word, find it, run it 08:23:55 ... and so on 08:24:14 I'm trying to write a parser that converts infix into an AST and then into a file for forth to read and interpret 08:24:42 i think that makes more sense though ^^ 08:25:44 another problem is what to do with a = 1 08:27:10 what do you mean? 08:27:49 equivilence vs assignment 08:27:52 pvt_petey, what 1 1 + 2 = . doesnt work for you? 08:28:45 it equals -1 08:28:53 1 1 + 2 = . -1 ok 08:29:30 pvt_petey, this means true. so it is equal. 08:29:57 ah ok 08:30:06 pvt_petey, if you now want to assign a value to a variable you do: variable my-variable 10 my-variable ! 08:30:49 pvt_petey, and don't ignore the space, that is important. 08:31:24 pvt_petey, so don't write for example: my-variable! 08:31:31 so variable is a keyword, my-variable is the name 10 the value 08:31:38 my-variable initialises it ? 08:32:11 pvt_petey, in forth are no keywords. 08:32:36 pvt_petey, each piece of text is in fact a function call. except numbers. 08:33:20 pvt_petey, and a cute hijacking of the parser by such a function call. 08:33:44 pvt_petey, for example to display a simple hello world you write: S" Hello World" type 08:34:33 pvt_petey, ANS FORTH (like gforth) is case insensitive, so there is no difference in writing TYPE, Type, type. 08:35:15 so string( " ") type() 08:35:32 or in a more function sense string arg0 arg1 ? 08:36:13 fantazo: "ANS Forth only requires implementations to recognise Standard words when they are typed entirely in upper case. Therefore, a Standard program must use upper case for all Standard words. " 08:36:14 pvt_petey, S" My cute string" is a function call. s" is a function, it hijacks the parser and reads from standard input until it reads " then it leaves the string address and length to the stack. type reads those two numbers from the stack and displays it. 08:36:36 true-grue, ah yes. my failure. 08:37:03 true-grue, but still it is true that a lot of the standard forths are case insensitive. 08:37:39 also I don't know much forth code (except that one which I write) which gives a damn about case sensitivity. 08:43:18 fantazo: eForth, for example, is case sensitive. In many Forths you can turn case sensitivity on/off. 08:43:37 true-grue, I know. 08:43:46 true-grue, for example in gforth too. 08:43:56 * seems like I've triggered some debate * 08:43:59 hehe 08:44:55 So, Forth is agnostic in sense of case sensitivity :) 08:45:12 and it depends if you use an ans forth system or an alternative one. alternative ones normally have the sensitivity turned on. standard ones normally have it turned off by default. 08:49:06 --- join: kumul (~mool@66-50-66-157.prtc.net) joined #forth 08:50:10 I don't know if mine is case-sensitive or not 09:36:51 --- quit: clog (^C) 09:36:51 --- log: stopped forth/14.02.16 09:48:45 --- log: started forth/14.02.16 09:48:45 --- join: clog (~nef@bespin.org) joined #forth 09:48:45 --- topic: 'Forth Programming | logged by clog at http://bit.ly/91toWN | isforth.com | forthfreak.net | http://forthworks.com/standards/DPANS/ | www.greenarraychips.com' 09:48:45 --- topic: set by I440r!~mark4@cpe-192-136-220-10.tx.res.rr.com on [Thu Jan 02 15:51:09 2014] 09:48:45 --- names: list (clog pvt_petey Zarutian klltkr ASau kumul kludge` true-grue nisstyre speckle crc malyn mnemnion mark4 Eth|cal karswell joneshf-laptop tangentstorm iNode000 c00kiemon5ter bluekelp koisoke nighty^_ daowee bbloom bjorkintosh nop0x07bc kulp mullein Adeon KipIngram Anarch backer ttmrichter jyc gordonjcp carc yunfan drobban cataska rprimus bstates sklr_ C-Keen djinni newcup dzho) 09:49:36 --- quit: nisstyre (Quit: WeeChat 0.4.3) 09:51:02 --- join: nisstyre (yourstruly@oftn/member/Nisstyre) joined #forth 09:56:10 --- quit: pvt_petey (Ping timeout: 260 seconds) 09:57:54 --- join: pvt_petey (~pvt_petey@88-107-48-71.dynamic.dsl.as9105.com) joined #forth 09:59:04 --- join: Azel (~Azel@163.82.69.86.rev.sfr.net) joined #forth 10:09:04 --- join: itsy (~digital_w@87.113.117.225) joined #forth 10:15:09 --- quit: bbloom (Ping timeout: 252 seconds) 10:31:44 --- join: Mat3 (~claude@91-64-101-249-dynip.superkabel.de) joined #forth 10:31:46 hi all 10:33:58 --- join: john_metcalf (~john_metc@87.113.117.225) joined #forth 10:39:15 --- quit: nisstyre (Quit: WeeChat 0.4.3) 10:42:04 --- join: nisstyre (yourstruly@oftn/member/Nisstyre) joined #forth 10:42:41 --- quit: nisstyre (Client Quit) 10:44:33 --- join: nisstyre (yourstruly@oftn/member/Nisstyre) joined #forth 11:18:22 --- join: pvt_pete_ (~pvt_petey@88-107-48-71.dynamic.dsl.as9105.com) joined #forth 11:19:39 --- quit: pvt_petey (Ping timeout: 260 seconds) 11:29:56 --- quit: Azel (Ping timeout: 245 seconds) 12:08:52 --- quit: mark4 (Ping timeout: 260 seconds) 12:22:29 --- join: mark4 (~mark4@cpe-68-203-183-77.tx.res.rr.com) joined #forth 12:27:28 --- join: TodPunk (~Tod@50-198-177-185-static.hfc.comcastbusiness.net) joined #forth 12:29:29 --- quit: ASau (Ping timeout: 245 seconds) 12:33:44 --- join: ASau (~user@p54AFEE4D.dip0.t-ipconnect.de) joined #forth 12:38:35 --- join: pvt_petey (~pvt_petey@88-107-48-71.dynamic.dsl.as9105.com) joined #forth 12:39:53 --- quit: pvt_pete_ (Ping timeout: 260 seconds) 13:14:03 --- quit: true-grue (Ping timeout: 245 seconds) 13:21:49 ciao 13:21:58 --- quit: Mat3 (Quit: Verlassend) 14:03:43 --- join: pvt_pete_ (~pvt_petey@88-107-48-71.dynamic.dsl.as9105.com) joined #forth 14:06:52 --- quit: pvt_petey (Ping timeout: 272 seconds) 14:27:22 --- part: jyc left #forth 14:29:33 --- quit: pvt_pete_ (Ping timeout: 260 seconds) 14:31:42 --- join: pvt_petey (~pvt_petey@88-107-48-71.dynamic.dsl.as9105.com) joined #forth 15:07:21 --- join: kumool (~mool@adsl-64-237-226-47.prtc.net) joined #forth 15:08:06 --- quit: kumul (Ping timeout: 248 seconds) 15:26:59 --- quit: pvt_petey (Ping timeout: 264 seconds) 15:30:14 --- join: pvt_petey (~pvt_petey@88-107-48-71.dynamic.dsl.as9105.com) joined #forth 16:04:10 --- join: ASau` (~user@p5083D5D8.dip0.t-ipconnect.de) joined #forth 16:06:16 --- quit: ASau (Ping timeout: 265 seconds) 16:08:24 --- quit: karswell (Ping timeout: 272 seconds) 16:23:38 --- join: karswell (~user@84.93.180.60) joined #forth 16:25:18 --- join: kumul (~mool@adsl-64-237-226-47.prtc.net) joined #forth 16:26:21 --- quit: kumool (Ping timeout: 245 seconds) 16:59:13 --- quit: kumul (Quit: Leaving) 18:05:15 --- quit: pvt_petey (Quit: Computer has gone to sleep.) 19:12:44 --- quit: Zarutian (Quit: Zarutian) 19:39:03 --- join: kumul (~mool@66-50-66-157.prtc.net) joined #forth 20:30:15 --- join: Fare (~fare@cpe-72-229-109-116.nyc.res.rr.com) joined #forth 20:43:44 --- join: Bahman (~Bahman@2.178.162.27) joined #forth 20:44:06 --- quit: Fare (Ping timeout: 260 seconds) 21:02:41 --- join: spoofer3 (~spoofer3@2600:100f:b004:3520:5c4a:7396:c93:fb9e) joined #forth 21:37:16 --- quit: itsy (Ping timeout: 265 seconds) 21:39:07 --- quit: john_metcalf (Ping timeout: 265 seconds) 22:03:00 --- join: asie (~textual@078088168214.elblag.vectranet.pl) joined #forth 22:08:14 --- quit: kumul (Read error: Connection reset by peer) 22:25:11 --- join: john_metcalf (~john_metc@87.114.114.212) joined #forth 22:31:31 --- quit: asie (Quit: I'll probably come back in either 20 minutes or 8 hours.) 22:39:28 --- quit: Bahman (Remote host closed the connection) 22:40:00 --- join: Bahman (~Bahman@2.178.162.27) joined #forth 23:49:53 --- quit: Bahman (Read error: Connection reset by peer) 23:59:59 --- log: ended forth/14.02.16