What have you found for these years?

2010-04-29

quoting

shell script 寫多了反而意識到為什麼自然語言是 multi-level.
雖然最重要的一點倒是 open audio 點醒我的,就是我們往往需要
轉述別人所說的話。那就是一個 "quote" 了。

在 shell script 中,也很容易會碰到這種 quote.
像是上次我在 .gitconfig 裡寫 alias, 那真是痛苦,
還有 .bash_profile, 裡面會有一堆 quoting issues...

最大的問題是 string 沒有 level, 在 shell script 中
硬把真正的 data structure 壓扁成一個 string, level 資訊遺失了。
要解讀有 multi-level 的句子,需要不斷 unquote,
像是 eval("this is an eval("i said eval("fruit") right")")

不知道能不能有一天把這看懂...
Deriving Compilers and Virtual Machines
for a Multi-Level Language

那時候看得迷迷茫茫的,好像有知道什麼,但又搞不清楚。
不知道什麼時候回頭去看時會豁然開朗?

0 retries:

Post a Comment

Note: Only a member of this blog may post a comment.



All texts are licensed under CC Attribution 3.0