陈世美是什么样的人| 白凉粉是什么做的| 说话不清楚是什么原因导致的| 什么的朝霞| 鸳鸯戏水是什么意思| 上善若水下一句是什么| 学生吃什么补脑子增强记忆力最快| 食物中毒吃什么药解毒| 红斑狼疮吃什么药最好| 眼角发黄是什么原因| 男性湿热吃什么药最好| 西游记什么时候写的| 世界上最多笔画的字是什么| 断片是什么意思| 辣椒炒什么好吃| 食物中毒呕吐吃什么药| 遥遥相望是什么意思| 关节退行性变是什么意思| 卢森堡为什么那么有钱| 生蚝有什么功效| 利空什么意思| 什么鱼不属于发物| 拔罐拔出水是什么原因| 耳石是什么东西| dk是什么牌子| 心脏是什么组织| 牙龈出血挂什么科| 邮箱是什么| 宝贝是什么意思| 今天开什么| 云南小黄姜和普通姜有什么区别| 不是经期有少量出血是什么原因| 什么叫无产阶级| 指甲硬是什么原因| 收悉是什么意思| 女真人是什么民族| lf是什么牌子| 促排药什么时候开始吃| 尿频尿急尿不尽吃什么药效果最好| 眼睛充血是什么原因造成的| 黑怕是什么意思| 什么是软饮料| 威士忌兑什么好喝| 宝妈男是什么意思| 带状疱疹是什么样的| 舌头发涩是什么原因造成的| 游离脂肪酸是什么| tmc是什么意思| 安然无恙的恙是什么意思| 子宫瘢痕憩室是什么病| 盖是什么意思| 头皮一阵一阵发麻是什么原因| 218号是什么星座| 一产二产三产分别包括什么| 百香果什么味道| 低保是什么| 吉祥是什么生肖| 脸上长癣用什么药膏| 高烧拉肚子是什么原因| 尿亚硝酸盐阳性是什么意思| 矫正度数是什么意思| 剑齿虎为什么会灭绝| 红参有什么作用| 不安腿是什么症状| 家财万贯是什么生肖| 牛肉粉是什么调料| 嬴政姓什么| 头重脚轻是什么生肖| 什么时候需要打破伤风针| 梦见好多葡萄是什么意思| 痛经 吃什么| 测幽门螺旋杆菌挂什么科| 女性尿特别黄是什么原因| 宁静致远是什么意思| 罗马棉是什么面料| 宝路华手表什么档次| 盆腔彩超检查什么| 人流后吃什么| 黄体功能不足是什么原因造成的| 口臭口干口苦是什么原因| 农历六月十四是什么日子| 大小周是什么意思| 金陵十二钗是什么意思| 孩子白细胞高是什么原因| 口腔医学是什么| 裂隙灯能查出什么眼病| 周杰伦的粉丝叫什么| 白癜风什么症状| 还有什么| 孕吐是什么原因造成的| 字形是什么意思| 脑花是什么东西| 肠易激综合症用什么药能治好| 玟字五行属什么| 省委组织部长是什么级别| 怀孕哭对宝宝有什么影响| 孩子肚子疼是什么原因| 6是什么意思网络语言| 吃什么对胆囊有好处| 乳酸菌是什么| 隐血阳性什么意思| 吹胡子瞪眼是什么意思| 恶魔是什么意思| hook是什么意思| 血氨高会导致什么后果| 慢性浅表性胃炎吃什么药| 观音殿求什么| 冰柜什么牌子好| chemical是什么意思| 痱子涂什么药膏好| 什么级别可以配秘书| 口臭药店买什么药吃| 二甲双胍是什么药| 娣什么意思| 花千骨最后结局是什么| 斋醮是什么意思| 529是什么意思| 血清检查能测出什么| 经常感觉口渴口干是什么原因| 抗磷脂综合征是什么病| 万宝龙手表什么档次| 张一山和杨紫是什么关系| 今年什么时候立秋| 滴虫性阴道炎用什么药效果最好| 抓兔子的狗叫什么名字| 怀孕前有什么征兆| 双规什么意思| mri是什么| 骨皮质扭曲是什么意思啊| 吧可以组什么词| 奇葩是什么意思| 牛肉可以炒什么菜| 大安是什么意思| 息肌丸是什么| 气胸是什么| 王安石字什么号什么| 怀孕分泌物是什么颜色| 吃苦荞有什么好处| 什么是核心期刊| 稼字五行属什么| 什么是无纺布| 什么汤清热解毒去火| 排卵期一般在什么时候| 白起为什么被赐死| 进去是什么感觉| 口臭应该挂什么科| 艾绒是什么| 欢天喜地是什么生肖| 香港为什么不用人民币| 头晕眼花是什么原因| 牛顿发明了什么| 青鹏软膏主要治疗什么| 海燕是什么鸟| 警示是什么意思| 肾积水是什么病严重吗| 权威是什么意思| zhr是什么牌子的鞋| 血府逐瘀片主治什么病| 登高是什么意思| 阴虚火旺是什么意思| 红斑狼疮什么症状| 测怀孕的试纸叫什么| 胆囊结石用什么药好| 高血压是什么原因造成的| 脚肿腿肿是什么原因引起的| nicu是什么意思| 什么叫混合痔| 十万个为什么儿童版| 泉肌症是什么病| 乔迁送什么礼物| 尿频去药店买什么药| 一岁宝宝吃什么| 高血压突然变成低血压是什么原因| 蜘蛛的天敌是什么动物| 睡觉手麻木是什么原因| 李字五行属什么| 椎间盘变性是什么意思| 缺维生素e有什么症状| 温州有什么区| 什么是割礼| 大仙为什么知道你的事| 京东积分有什么用| 什么是痣| 胎囊是什么| 恩泽是什么意思| 西洋参有什么作用| 茵是什么意思| 脑血管造影是什么意思| 5月23号是什么星座| 尿道口灼热感吃什么药最快| 血红蛋白低吃什么药| 不自爱是什么意思| 宫颈糜烂用什么药| 真实的印度是什么样的| 胆囊炎要吃什么药| 菩提子手串有什么好处| 钢铁侠叫什么名字| 蛇怕什么家禽| 花哨是什么意思| 清水是什么意思| 海虾不能和什么一起吃| 7月28日是什么星座| 马拉松是什么意思| 笨和蠢有什么区别| 腹泻吃什么水果| 静对什么| 一加是什么品牌| 1947年属猪的是什么命| 胃为什么会疼| 美尼尔症是什么病| 钛合金是什么材料| 低血压吃什么药效果好| 红薯用什么繁殖| 紫苏叶有什么功效| 为什么会结石| 即视感是什么意思| 蘑菇不能和什么一起吃| fredperry是什么牌子| 风湿免疫科是什么病| 什么是禽流感| 肺部条索影是什么意思| 为什么吐后反而舒服了| 上不下大是什么字| 小儿鼻炎用什么药好| 浪迹天涯是什么生肖| 狗吃什么药会立马就死| 碳水化合物是什么食物| 夏至是什么节日| 白癜风是什么原因引起的| 心脏早搏吃什么药最好| 薄荷有什么功效和作用| 呼吸道感染挂什么科| 八百里加急是什么意思| 孕妇吃什么钙片好| 炎性肉芽肿是什么意思| 11月15日出生是什么星座| 抓鱼的鸟叫什么| 隐喻的意思是什么| 拉屎肛门疼是什么原因| 子不问卜自惹祸殃什么意思| 每个月月经都推迟是什么原因| 怕热爱出汗是什么原因| 寒冷的反义词是什么| 转氨酶异常是什么意思| 烟酸是什么| 载脂蛋白b高是什么原因| 霉菌性阴道炎吃什么消炎药| 一什么尾巴| 缺金的人戴什么最旺| 咳嗽可以吃什么| 脾虚不能吃什么| 毛重是什么| 2月份生日是什么星座| 病原体是什么意思| 咽炎吃什么药最有效| 倭瓜是什么意思| 牛肉饺子馅配什么蔬菜好吃| 什么的风儿| 什么的拼音怎么写| 湿疹为什么要查肝功能| 雪茄为什么不过肺| 失眠多梦是什么原因| 合约机什么意思| t1w1高信号代表什么| 百度Jump to content

省交通运输厅确保全省交通运输行业安全生产形势稳定

From Wikipedia, the free encyclopedia
百度 纳智捷销量触底目前新车市场最受欢迎、关注度最高的仍然是SUV车型,很多车企借助SUV获得了可观销量。

A metasyntactic variable is a specific word or set of words identified as a placeholder in computer science and specifically computer programming. These words are commonly found in source code and are intended to be modified or substituted before real-world usage. For example, foo and bar are used in over 330 Internet Engineering Task Force Requests for Comments, the documents which define foundational internet technologies like HTTP (web), TCP/IP, and email protocols.[1][2]

By mathematical analogy, a metasyntactic variable is a word that is a variable for other words, just as in algebra letters are used as variables for numbers.[1][failed verification]

Metasyntactic variables are used to name entities such as variables, functions, and commands whose exact identity is unimportant and serve only to demonstrate a concept, which is useful for teaching programming.

Common metasyntactic variables

[edit]

Since English is the foundation language or lingua franca of most computer programming languages, variables that originate in English are commonly seen even in programs and examples of programs written for other spoken-language audiences.

The variables used in a particular context may depend on subcultures that develop around programming languages.

General usage

[edit]

Metasyntactic variables used commonly across all programming languages include foobar, foo, bar, baz, qux, quux, corge, grault, garply, waldo, fred, plugh, xyzzy, and thud.[1][3] Two of these words, plugh and xyzzy, are taken from the game Colossal Cave Adventure.[4]

A fuller reference can be found in The Hacker's Dictionary from MIT Press.

Japanese

[edit]

In Japanese, the words hoge (ほげ)[5] and fuga (ふが) are commonly used, with other common words and variants being piyo (ぴよ), hogera (ほげら), and hogehoge (ほげほげ).[6][circular reference] The origin of hoge as a metasyntactic variable is not known, but it is believed to date to the early 1980s.[6]

French

[edit]

In France, the word toto is widely used, with variants tata, titi, tutu as related placeholders. One commonly-raised source for the use of toto is a reference to the stock character used to tell jokes with Tête à Toto.[citation needed]

Turkish

[edit]

In Turkey, the words hede and h?d? (usually spelt hodo due to ASCII-only naming constraints of programming languages) are well-known metasyntactic variables that stem from popular humorous cartoon magazines of the 90's like LeMan. The words do not mean anything, and are used for precisely that reason. The terms were popularized more widely by the actor and stand-up comedian Cem Y?lmaz in the late 90's and early 2000's.[7]

Italian

[edit]

In Italian software programming culture, it is common to encounter names of Walt Disney characters (as found in the Italian versions of the shows) being used as variables. These names often appear in pseudo-code, are referenced in software engineering classes, and are commonly employed when explaining algorithms to colleagues. Among the most frequently used are "pippo" (Goofy), "pluto", and "paperino" (Donald Duck).[8]

Usage examples

[edit]
A screenshot of a metasyntactic variable FOO assigned and echoed in an interactive shell session.

C

[edit]

In the following example the function name foo and the variable name bar are both metasyntactic variables. Lines beginning with // are comments.

// The function named foo
int foo(void)
{
   // Declare the variable bar and set the value to 1
   int bar = 1;

   return bar;
}

C++

[edit]

Function prototypes with examples of different argument passing mechanisms:[9]

void Foo(Fruit bar);
void Foo(Fruit* bar);
void Foo(const Fruit& bar);

Example showing the function overloading capabilities of the C++ language

void Foo(int bar);
void Foo(int bar, int baz);
void Foo(int bar, int baz, int qux);

Python

[edit]

Spam, ham, and eggs are the principal metasyntactic variables used in the Python programming language.[10] This is a reference to the famous comedy sketch, "Spam", by Monty Python, the eponym of the language.[11] In the following example spam, ham, and eggs are metasyntactic variables and lines beginning with # are comments.

# Define a function named spam
def spam():

    # Define the variable ham
    ham = "Hello World!"

    # Define the variable eggs
    eggs = 1

    return

IETF Requests for Comments

[edit]

Both the IETF RFCs and computer programming languages are rendered in plain text, making it necessary to distinguish metasyntactic variables by a naming convention, since it would not be obvious from context.

Here is an example from the official IETF document explaining the e-mail protocols (from RFC 772 - cited in RFC 3092):

 All is well; now the recipients can be specified.

     S: MRCP TO:<Foo@Y> <CRLF>
     R: 200 OK

     S: MRCP TO:<Raboof@Y> <CRLF>
     R: 553  No such user here

     S: MRCP TO:<bar@Y> <CRLF>
     R: 200 OK

     S: MRCP TO:<@Y,@X,fubar@Z> <CRLF>
     R: 200 OK

  Note that the failure of "Raboof" has no effect on the storage of
  mail for "Foo", "bar" or the mail to be forwarded to "fubar@Z"
  through host "X".

(The documentation for texinfo emphasizes the distinction between metavariables and mere variables used in a programming language being documented in some texinfo file as: "Use the @var command to indicate metasyntactic variables. A metasyntactic variable is something that stands for another piece of text. For example, you should use a metasyntactic variable in the documentation of a function to describe the arguments that are passed to that function. Do not use @var for the names of particular variables in programming languages. These are specific names from a program, so @code is correct for them."[12])

Another point reflected in the above example is the convention that a metavariable is to be uniformly substituted with the same instance in all its appearances in a given schema. This is in contrast with nonterminal symbols in formal grammars where the nonterminals on the right of a production can be substituted by different instances.[13]

Example data

[edit]

SQL

[edit]

It is common to use the name ACME in example SQL databases and as a placeholder company-name for the purpose of teaching. The term 'ACME Database' is commonly used to mean a training or example-only set of database data used solely for training or testing. ACME is also commonly used in documentation which shows SQL usage examples, a common practice with in many educational texts as well as technical documentation from companies such as Microsoft and Oracle.[14][15][16]

See also

[edit]

References

[edit]
  1. ^ a b c Eastlake 3rd, Donald E.; Manros, Carl-Uno; Raymond, Eric S. Etymology of "Foo". doi:10.17487/RFC3092. RFC 3092.
  2. ^ "Document Retrieval". RFC Editor.
  3. ^ Laughlin, Stuart (November 18, 2016). "Metasyntactic variable". programming@ProgClub (Mailing list). Archived from the original on December 2, 2022. Retrieved November 18, 2016.
  4. ^ Crowther, Will (2025-08-07). "advdat.77-03-11". Colossal Cave Adventure Source Code. Dennis G. Jerz. Retrieved 2025-08-07.
  5. ^ "hogeの意味?使い方 - 英和辞典 Weblio 辞書". ejje.weblio.jp.
  6. ^ a b メタ構文変数 (in Japanese)
  7. ^ LeMan Dergisi 1376. Say? (in Turkish). Lm Basin Yayin Ltd.?ti.
  8. ^ "The Jargon File - metasyntactic variable". www.catb.org/.
  9. ^ Mongan, John; Kindler, Noah; Giguere, Eric (2012). Programming Interviews Exposed: Secrets to Landing Your Next Job. John Wiley & Sons. p. 242. ISBN 978-1-118-28720-0.
  10. ^ "The Python Tutorial — Python 3.8.1 documentation". docs.python.org.
  11. ^ "General Python FAQ — Python 3.9.7 documentation". docs.python.org. Python Software Foundation. 2025-08-07. Why is it called Python?. Archived from the original on 2025-08-07. Retrieved 2025-08-07.
  12. ^ "Marking Words and Phrases". Texinfo 4.0. The GNU Documentation Format. Archived from the original on 2025-08-07. Retrieved 2025-08-07.
  13. ^ R. D. Tennent (2002). Specifying Software: A Hands-On Introduction. Cambridge University Press. pp. 36–37 and 210. ISBN 978-0-521-00401-5.
  14. ^ Kriegel, Alex (2008). SQL bible. Indianapolis, Ind: Wiley. ISBN 978-0-470-22906-4. OCLC 402446308.
  15. ^ Ruel, Chris (2014). Oracle 12c for dummies (in Danish). Hoboken, NJ: John Wiley & Sons. ISBN 978-1-118-74531-1. OCLC 870334544.
  16. ^ "Work with data in ASP.NET Core Apps". docs.microsoft.com. 25 April 2023.
[edit]
西药是用什么材料做的 预防脑梗吃什么药 三个女人一台戏什么意思 阿司匹林什么时候吃最好 心肌酶是检查什么的
结局he是什么意思 三百年前是什么朝代 考试吃什么 ab型血和o型血的孩子是什么血型 乙肝有抗体是显示什么结果
甲鱼什么人不能吃 调侃什么意思 嗜血是什么意思 全身发热是什么原因 那英姓什么
上眼皮肿是什么原因 脂肪是什么 一边脸大一边脸小是什么原因 胸疼是什么原因引起的 头七是什么意思
9月份怀孕预产期是什么时候dayuxmw.com 缓刑什么意思hcv9jop5ns9r.cn 什么是周岁hcv9jop6ns2r.cn 男生为什么会遗精hcv9jop7ns1r.cn 是什么标点符号hcv8jop1ns3r.cn
怀孕脚浮肿是什么原因引起的hcv9jop2ns6r.cn 劳宫穴在什么位置hcv8jop0ns6r.cn honor是什么牌子手机hcv8jop7ns8r.cn 养囊是什么意思hcv8jop5ns9r.cn 黄金有什么作用luyiluode.com
活塞是什么意思hcv7jop6ns6r.cn 豚是什么意思hcv8jop5ns2r.cn 尿毒症什么原因引起的hcv9jop0ns9r.cn 什么规律hcv9jop1ns3r.cn 吃银耳有什么好处和坏处hcv9jop6ns0r.cn
姑姑和我是什么关系hcv7jop4ns5r.cn 黑指甲是什么症状图片hcv9jop6ns5r.cn 保肝护肝吃什么药好hcv7jop9ns4r.cn 立冬吃什么东西hcv7jop9ns2r.cn 发烧适合吃什么食物hcv8jop3ns2r.cn
百度