Add files via upload

This commit is contained in:
Peter Norvig
2017-11-21 22:18:21 -08:00
committed by GitHub
parent 6c51ac830d
commit 778a236d14

View File

@@ -28,7 +28,7 @@
"\n",
"That would be around 40 to 60 lines of code; an easy task. But I noticed three interesting things about Snobol:\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",
"* When the program ends, the Snobol interpreter automatically\n",
"prints the values of every variable, sorted alphabetically, as a debugging aid.\n",
@@ -37,7 +37,7 @@
"\n",
"# The Concordance Solution\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):"
]
},
{