- 1剖析(文法、句子結構);程式也常說解析
To parse is to take a sentence, or one word inside a sentence, and say what job it is doing. You name the subject, the verb, the object, and the little words that hold the sentence together. In an old-fashioned English class, “parse this sentence” meant: stand up and show the structure, piece by piece. That school use is still the core meaning. Though actually, today you will meet parse far more often from computer people than from grammar teachers. A program parses text when it works out the structure so a machine can do something with it: run a command, read a page, or check a line of code. People also stretch the word in ordinary talk, a little loosely: “I can’t parse what she just said” means “I can’t work out how the pieces fit, so I don’t know what she means.” It is a technical word, not a kitchen-table word, but it is honest about the same action in every room: you are not guessing the feeling of the sentence; you are taking it apart.
組成Possibly from Middle English pars (“parts of speech, grammar”), from Old French pars, from Latin pars (“part, piece, share”). The picture is that you split a sentence into its parts.
原始詞典資料7 筆記錄
以下是外部詞典記錄的用法,摘錄並精簡格式,我們還沒有寫成教學內容。上面的說明才是我們自己寫的;有些用法可能上面已經講過了。
parseverb/pɑːz/
- 1
human-scienceslinguisticssciencesTo resolve (a sentence, etc.) into its elements, pointing out the several parts of speech, and their relation to each other by agreement or government; to analyze and describe grammatically.
- 2
To examine closely; to scrutinize.
- 3
computingengineeringmathematicsTo split (a file or other input) into pieces of data that can be easily manipulated or stored.
- 4
computingengineeringmathematicsTo resolve (a string of code or text) into its elements to determine if it conforms to a particular grammar.
- 5
computingengineeringhuman-sciencesOf a string of code or text, sentence, etc.: to conform to rules of grammar, to be syntactically valid.
- This sentence doesn't parse.
parsenoun/pɑːz/
- 1
computingengineeringhuman-sciencesAn act of parsing; a parsing.
- The parse will fail if the program contains an unrecognised keyword.
- 2
computingengineeringhuman-sciencesThe result of such an act; a parsing.
- This parse is incorrect and indicates a fault in the parser.
摘錄自 英文維基詞典 English Wiktionary,已精簡格式;依 CC BY-SA 4.0 授權使用,改動後的內容同樣以此授權提供。