Add files via upload
This commit is contained in:
parent
6c51ac830d
commit
778a236d14
@ -28,7 +28,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"That would be around 40 to 60 lines of code; an easy task. But I noticed three interesting things about Snobol:\n",
|
"That would be around 40 to 60 lines of code; an easy task. But I noticed three interesting things about Snobol:\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* There is an *indirection* operator, `$`, so if the variable `'word'` has the value `\"A\"`, then `'$word = i'` is the same as `'A = i'`.\n",
|
"* There is an *indirection* operator, `$`, so if the variable `'X'` has the value `\"A\"`, then `'$X = i'` is the same as `'A = i'`.\n",
|
||||||
"* Uninitialized variables are treated as the empty string, so `'A += \"text\"'` works even if we haven't seen `'A'` before.\n",
|
"* Uninitialized variables are treated as the empty string, so `'A += \"text\"'` works even if we haven't seen `'A'` before.\n",
|
||||||
"* When the program ends, the Snobol interpreter automatically\n",
|
"* When the program ends, the Snobol interpreter automatically\n",
|
||||||
"prints the values of every variable, sorted alphabetically, as a debugging aid.\n",
|
"prints the values of every variable, sorted alphabetically, as a debugging aid.\n",
|
||||||
@ -37,7 +37,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"# The Concordance Solution\n",
|
"# The Concordance Solution\n",
|
||||||
"\n",
|
"\n",
|
||||||
"I ended up with a program similar to the following (translated from Snobol to Python augmented with `'$word'` indirection):"
|
"I ended up with a program similar to the following (translated from Snobol to Python, but with `'$word'` indirection):"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user