Hello, This email message is a notification to let you know that a file has been uploaded to the Files area of the snobol group. File : /rl.inc Uploaded...
snobol@yahoogroups.com
Mar 5, 2008 2:43 pm
560
Just tried to download the urlbnf.spt file. The error message pops up: "The requested document is not accessible." Did Y! dump our files? Or am I the only user...
... Right now, it appears they're all inaccessible. To paraphrase the famous tech support haiku originally dealing with Windows: Yesterday it worked. Today it...
... Rafal, No, I had not done anything to the files section. When I tried it, I got a time out. I tried loading another file and it downloaded. Then I went...
g'day, while trying to solve a programming riddle I encountered a small problem: strings characters should be sorted alphabetically. We have SORT() for...
Hello, This email message is a notification to let you know that a file has been uploaded to the Files area of the snobol group. File : /Quests/Text...
snobol@yahoogroups.com
May 8, 2008 10:19 am
566
I'm not sure what your intentions are with the difference between lcase and ucase (you seem to discard everything but lcase), but a simple one line bubble sort...
There was a silent assumption the string to convert is all-lowercase, no whitespaces text. The result of the sorting: karthagena -> aaaeghknrt Greetings,...
Enter your vote today! A new poll has been created for the snobol group: Are all Snobol4 programmers bearded? Inspired by ...
snobol@yahoogroups.com
May 8, 2008 1:09 pm
569
Peter's solution is about the simplest possible, although you might want something else if your expected strings are long and/or if you're going to be doing a...
"One of my kids had been playing a computer-based game which used a variety of word puzzles. The question he posed to me was to take a word, apply a small set...
Another approach (and which would be faster, especially if you wanted to deal with large strings... which probably isn't an issue here) would be something...
... full set, sequentially, one time ... yes Example transformation: ikea -> now ... .... I know the rules aren't exactly rocket science. The idea behind the...
... Hmmm, that doesn't jive precisely with the quote Gordon gave: "...The question he posed to me was to take a word, apply a small set of rules to it, as many...
... [snip] ... I just extracted the transformation rules from the original. The control flow is IMHO not as interesting as how the rules can be implemented in...
And speaking of word puzzles, I've been thinking about writing a Scrabble tool. You are given a dictionary file of words. You are given a set of 7 letter tiles...
... Good idea. Feel free to use the Files/Quests/Scrabble folder for storing your script... ... I uploaded (for those on non-UNIX systems) the word list ... ...
Actually, this sort of thing is an EXCELLENT example of the sort of problem which is MUCH better to implement in Icon than in S'BOL. Both for the goal-directed...
There is a demonstration program, called "Cross" if memory serves, which does part of this problem. I don't recall if it's a SNOBOL routine or an Icon...
... Oh, I *strongly* disagree on that one... since in S'BOL so often you want to implement IMPLICIT flow of control, AND because there are huge advantages to...
Clearly it is a MUCH more challenging problem if you can perform any or all the six rules in arbitrary sequence, and arbitrarily many times each. Part of that...
This seems to me a straightforward solution for Rafal M. Suleman's programming challenge: define("transform(w)x,y","rule1") :(transform_end) ***** Rule 1:...
Good idea. I think Icon may be a better choice. The pattern matching requirements of the problem are fairly moderate. Jim ... From: "Gordon Peterson"...
It's cross.icn. It looks like a good source of ideas. Jim ... From: "Gordon Peterson" <gep2@...> To: <snobol@yahoogroups.com> Sent: Thursday, May 08,...
... I'm sorta surprised that Peter didn't use replace(). w = " " replace(terminal,"s"," ") rule2 w len(1) $ x len(1) $ y *llt(y,z) = y x :s(rule2) w =...
G'day everyone, When you finish discussing this issue, it'd be really nice if you could post your solutions to the blog whence it came, either on the original ...
I thought about using replace for rule 3, but as you perceived, it would prevent me from combining rule 1 and 3. Moreover, I found it somehow elegant to have...
Peter-Arno's code needs to be run in fullscan mode. SPITBOL is always in fullscan mode, while SNOBOL needs &FULLSCAN = 1 added to the program. Logan Kinnison ...