From Esolang
Jump to: navigation, search

Regular expressions

Do Sortle's regexes actually qualify as regular expressions; that is, do they satisfy the requirement of being a regular grammar, etc? I explicitly said "regexes" in the specification, because I was not sure if "regular expressions" was correct. --Graue 02:58, 18 Jul 2005 (GMT)

What's the difference between ^ and $ ?

I'm used to the empty string comparing less than everything else, and C's strcmp seems to follow that. Doesn't this mean that ^ and $ are identical commands? --Ørjan 23:22, 27 February 2012 (UTC)

There's no difference. That appears to have been a mistake I made when writing the spec; in my original notes, ^ had slightly different behavior. But now they are identical. --Graue 01:48, 28 February 2012 (UTC)
Ah, thanks. --Ørjan 02:01, 28 February 2012 (UTC)

did i find a bug in ?

I wanted to try the language out so i wrote some tiny test progs:

jux := "" 
juw := "s" ".!" "" ? ~ 

When i ran this it returned >> sjux << . Then i modified it by one letter (changed juw to juz), thus

jux := "" 
juz := "s" ".!" "" ? ~ 

and it returned >> juz <<. Couldnt imagine this was intended so i currently think this is probably a bug. --(this comment by Mahagugu at 15:29, 14 January 2014‎ UTC; please sign your comments with ~~~~)

That looks correct to me. Note that "juw" is before "jux" in alphabetical order, but "juz" is after "jux". So the programs run different expressions first. --Ørjan (talk) 17:26, 14 January 2014 (UTC)

hmm, thx , now it makes me believe that was indeed intended --(this comment by Mahagugu at 18:08, 15 January 2014‎ UTC; please sign your comments with ~~~~)