<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      《CPython Internals》閱讀筆記:p97-p117

      《CPython Internals》學習第 7 天,p97-p117 總結,總計 21 頁。

      一、技術總結

      1.詞法分析(lexical analysis)

      根據《Compilers-Principles, Techniques, and Tools》(《編譯原理》第2版)第 5 頁:The first phase of a compiler is called lexical analysis or scanning. The lexcical analyzer reads the stream of characters making up the source program and groups the characters into meaningful sequences called lexemes. For each lexeme, the lexical analyzer produces as output a token of the form <token-name, attribute-value> that is passes on to the subsequent phase, syntax analysis。

      執行詞法分析(lexical analysis)的 component 稱為 lexical analyzer(有時候也稱為lexer, scanner, tokenizer)。

      2.關于parser-tokenizer的一疑問

      p92, Creating a concrete syntax tree using a parser-tokenizer, or lexer.

      p92,The CST is created from a tokenizer and a parser.

      說實話,我不是很理解作者為什么要將編譯流程畫成這樣,以及為什么要用 parser-tokenizer這個術語,這樣真是太混亂了。

      流程圖以及第一句表明 lexer 的輸出是 CST, 但是第二句 CST的輸出來自于 tokenizer 和 parser,簡直就是前后矛盾。lexer 的輸出是 token, 所以才有 tokenizer 這個稱呼。 CST 是 parser 的輸出。

      以及最后又流入到 compiler,也是很莫名其妙, lexer 和 parser 其實屬于 compiler。

      3.AST

      p102, The structure is a representation of the CST called an abstract syntax tree (AST).

      p111,Abstract syntax tree (AST): A contextual tree representation of Python’s grammar and statements.

      看完上面這兩個定義哪個讀者能不迷糊。

      二、英語總結(生詞:0)

      無。

      關于英語的注解同步更新匯總到 https://github.com/codists/English-In-CS-Books 倉庫。

      三、其它

      Lexing and Parsing With Syntax Trees: 本章作者介紹比較混亂,如果讀者不熟悉編譯原理的知識,那么最好先補充下編譯原理知識,這樣才能更好的理解本章內容。

      四、參考資料

      1. 編程

      (1) Anthony Shaw,《CPython Internals》:https://book.douban.com/subject/35405785/

      2. 英語

      (1) Etymology Dictionary:https://www.etymonline.com

      (2) Cambridge Dictionary:https://dictionary.cambridge.org

      歡迎搜索及關注:編程人(a_codists)

      posted @ 2025-01-12 23:51  codists  閱讀(12)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 久久综合色最新久久综合色| 麻豆国产传媒精品视频| 国产一区二区一卡二卡| 成全影视大全在线观看| 久久精品娱乐亚洲领先| 久热这里只有精品视频3| 国产乱弄免费视频观看| 蜜臀视频在线观看一区二区| 亚洲永久一区二区三区在线 | 久久在线视频免费观看| 甘泉县| 乱子伦视频在线看| 四虎女优在线视频免费看| 奇米四色7777中文字幕| 久久99精品久久久久久琪琪| 亚洲中文字幕精品久久| 中国CHINA体内裑精亚洲日本| 国产日韩精品中文字幕| 亚洲精品网站在线观看不卡无广告| 深夜福利资源在线观看| 麻豆精品一区二区三区蜜臀 | 亚洲高清日韩专区精品| 日韩AV片无码一区二区不卡| 又湿又紧又大又爽a视频| 国产亚洲精品第一综合另类无码无遮挡又大又爽又黄的视频 | 治多县| 免费av深夜在线观看| 高潮喷水抽搐无码免费| 国产一区二区三区麻豆视频 | 人妻少妇偷人无码视频| 国产亚洲一在无在线观看| yyyy在线在片| 国产午夜福利视频合集| 高清国产av一区二区三区| 伊人久久精品一区二区三区| 亚洲国产精品久久久天堂麻豆宅男 | 国语自产少妇精品视频蜜桃| 欧美人与zoxxxx另类| 国产免费无遮挡吃奶视频| 色综合色综合久久综合频道88| 蜜臀久久99精品久久久久久|