Search the web
Sign In
New User? Sign Up
snobol
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 564 - 593 of 883   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
564
g'day, while trying to solve a programming riddle I encountered a small problem: strings characters should be sorted alphabetically. We have SORT() for...
Rafal M. Sulejman
rms_s4
Offline Send Email
May 8, 2008
9:53 am
565
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
Send Email
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...
Peter-Arno Coppen
pacoppen
Offline Send Email
May 8, 2008
10:20 am
567
There was a silent assumption the string to convert is all-lowercase, no whitespaces text. The result of the sorting: karthagena -> aaaeghknrt Greetings,...
Rafal M. Sulejman
rms_s4
Offline Send Email
May 8, 2008
10:31 am
568
Enter your vote today! A new poll has been created for the snobol group: Are all Snobol4 programmers bearded? Inspired by ...
snobol@yahoogroups.com
Send Email
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...
Gordon Peterson
gep_2
Offline Send Email
May 8, 2008
1:51 pm
570
"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...
Gordon Peterson
gep_2
Offline Send Email
May 8, 2008
2:15 pm
571
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...
Gordon Peterson
gep_2
Offline Send Email
May 8, 2008
2:33 pm
572
... full set, sequentially, one time ... yes Example transformation: ikea -> now ... .... I know the rules aren't exactly rocket science. The idea behind the...
Rafal M. Sulejman
rms_s4
Offline Send Email
May 8, 2008
3:01 pm
573
... 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...
Steve Wampler
steve_wampler
Offline Send Email
May 8, 2008
3:17 pm
574
... [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...
Rafal M. Sulejman
rms_s4
Offline Send Email
May 8, 2008
3:25 pm
575
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...
Jim Mehl
jimmehl
Offline Send Email
May 8, 2008
4:10 pm
576
... 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 ... ...
Rafal M. Sulejman
rms_s4
Offline Send Email
May 8, 2008
7:18 pm
577
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...
Gordon Peterson
gep_2
Offline Send Email
May 9, 2008
3:32 am
578
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...
Gordon Peterson
gep_2
Offline Send Email
May 9, 2008
3:41 am
579
... 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...
Gordon Peterson
gep_2
Offline Send Email
May 9, 2008
3:46 am
580
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...
Gordon Peterson
gep_2
Offline Send Email
May 9, 2008
4:04 am
581
This seems to me a straightforward solution for Rafal M. Suleman's programming challenge: define("transform(w)x,y","rule1") :(transform_end) ***** Rule 1:...
Peter-Arno Coppen
pacoppen
Offline Send Email
May 9, 2008
11:23 am
582
Good idea. I think Icon may be a better choice. The pattern matching requirements of the problem are fairly moderate. Jim ... From: "Gordon Peterson"...
Jim Mehl
jimmehl
Offline Send Email
May 9, 2008
3:11 pm
583
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,...
Jim Mehl
jimmehl
Offline Send Email
May 9, 2008
3:12 pm
584
... 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 =...
Gordon Peterson
gep_2
Offline Send Email
May 9, 2008
11:30 pm
585
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 ...
Bruce M. Axtens
bruce_axtens
Offline Send Email
May 10, 2008
4:15 am
586
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 Coppen
pacoppen
Offline Send Email
May 13, 2008
7:00 am
587
does the sorting (rule2) work correctly on your systems? Sorted string "ikea" should be "aeik", the result of Peter-Arno's sorting is 'eika'......
Rafal M. Sulejman
rms_s4
Offline Send Email
May 15, 2008
1:40 pm
588
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 ...
Kinnison, Logan
LOGAN.KINNISON@...
Send Email
May 15, 2008
2:12 pm
589
... Thank you, it helped....
Rafal M. Sulejman
rms_s4
Offline Send Email
May 15, 2008
2:29 pm
590
... You should set &fullscan = 1, which is standard in spitbol, but not in snobol4. Peter-Arno Coppen...
pacoppen
Offline Send Email
May 15, 2008
2:54 pm
591
... Thank you. I saved your solutions in Files section (Files > Quests > Text transformation)....
Rafal M. Sulejman
rms_s4
Offline Send Email
May 15, 2008
3:11 pm
592
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
Send Email
May 16, 2008
7:58 am
593
A few comments to this file upload: It appeared that the original question on codeaholic.blogspot was a little bit more complicated. The question was, how can...
pacoppen
Offline Send Email
May 16, 2008
8:09 am
Messages 564 - 593 of 883   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help