parse sth
Students often find it hard to parse a long sentence.
学生常常觉得分析长句的句法结构很难。
解析;作句法分析
parsed — past of parse
将(句子等)分解成构成要素,指出各词类及其相互间的语法关系;作语法分析描写。;仔细检查;审视。;将(文件或其他输入)拆分成易于处理或存储的数据片段。;将(代码或文本串)分解成组成元素,以确定其是否符合特定语法。;指代码串、文本、句子等符合语法规则,在句法上有效。
to analyze a sentence by identifying its grammatical structure
指对句子进行语法分析,而非计算机数据解析
将(句子等)分解成构成要素,指出各词类及其相互间的语法关系;作语法分析描写。
To 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.
仔细检查;审视。
To examine closely; to scrutinize.
将(文件或其他输入)拆分成易于处理或存储的数据片段。
To split (a file or other input) into pieces of data that can be easily manipulated or stored.
将(代码或文本串)分解成组成元素,以确定其是否符合特定语法。
To resolve (a string of code or text) into its elements to determine if it conforms to a particular grammar.
指代码串、文本、句子等符合语法规则,在句法上有效。
Of a string of code or text, sentence, etc.: to conform to rules of grammar, to be syntactically valid.
一般现在时
The program parses the data into a table.
这个程序将数据解析成表格。
一般过去时
Yesterday I parsed the file manually.
昨天我手动解析了这个文件。
现在完成时
She has parsed every sentence in the article.
她已经解析了文章中的每一个句子。
规则动词:过去式和过去分词加 -ed;现在分词去掉末尾 e 再加 -ing。
The teacher asked the class to parse the sentence and label each part of speech.
老师让全班同学解析这个句子,并标出每个词性。
用法提示:这里“parse”作及物动词,表示对句子进行语法分析。
The students were parsing a Latin sentence when the bell rang.
铃声响起时,学生们正在解析一个拉丁语句子。
用法提示:这里“parsing”是现在分词形式,与were构成过去进行时,表示正在做句法分析。
If you parse this sentence carefully, you will find that the subject is missing.
如果你仔细解析这个句子,就会发现主语缺失了。
用法提示:这里“parse”作动词,用于条件句中,表示对句子进行句法分析。
Students often find it hard to parse a long sentence.
学生常常觉得分析长句的句法结构很难。
计算机语境中,parse 常指把原始数据按语法规则拆分成有结构的部分。
The program parses the HTML file into a tree structure.
该程序把 HTML 文件解析成树状结构。
This clause can be parsed as the object of the verb.
这个从句可以被分析为动词的宾语。
通用词,可用于任何事物;在句法语境中可替换 parse,但不如 parse 强调把句子拆成成分。
非正式短语,强调把一个句子拆成较小部分;日常说明中常用,语法术语色彩弱。
带“深入细致检查”的隐喻,语气比 parse 强烈;常用于教学或评论,日常口语中较少。
grammar · medium
易错句子We need to analysis the sentence grammatically.
正确表达We need to parse the sentence grammatically.
analysis 是名词,不能用在 need to 后面;need to 后接动词原形,parse 是及物动词,表示“对(句子)作句法分析”,可直接后接宾语。
grammar · medium
易错句子This sentence is difficult to be parsed.
正确表达This sentence is difficult to parse.
在 be difficult to 结构中,不定式用主动形式表示被动意义,主语是 parse 的逻辑宾语,因此应说 to parse,而不是 to be parsed。
parse 特指按语法或程序规则把句子/代码拆成成分;analyze 是泛泛的“分析”,对象可以是任何事物。说“分析数据/结果”用 analyze,不用 parse。
analysis 是名词,parse 是动词。需要动词时用 parse/analyze,需要名词时用 analysis;不能把 parse 当名词或把 analysis 当动词。
parse 的“解析”指按语法拆解字符串或数据;resolve 的“解析”多指把域名、问题等转换成结果(如 DNS 解析)。两者中文都可译成“解析”,但动作对象不同。
解析句子;作句法分析
The teacher asked us to parse the sentence into its grammatical components.
老师让我们把这个句子解析成语法成分。
解析数据
The program parses data from the log files.
程序解析日志文件中的数据。
解析XML
This function parses XML input and returns an object.
这个函数解析XML输入并返回一个对象。
解析输入
The compiler parses the input and builds an abstract syntax tree.
编译器解析输入并构建抽象语法树。
解析错误
The script failed with a parse error.
脚本因解析错误而失败。
parse 的分析对象正是句法结构。
语法规则指导 parse 如何划分句子成分。
计算机解析中常先将输入拆分成词元,再进一步 parse。
编译器中包含 parse 阶段,用于分析源代码的语法结构。
在语言学中,parse 通常用于分析句子的句法结构。
分析出;弄明白
It took me a while to parse out what she was trying to say.
我花了好一会儿才弄明白她想说什么。
仔细梳理;逐个分析
The team parsed through hundreds of documents to find the error.
团队仔细梳理了数百份文件以查找错误。
把…剖析开;拆解分析
We need to parse apart this argument to see whether it holds up.
我们需要拆解分析这个论点,看它是否站得住脚。
解析,不要验证。
This quote is a famous programming principle from Alexis King's essay, encouraging developers to use an explicit parse function to handle invalid data at the boundary.
这句名言出自Alexis King的文章,是一条著名的编程原则,鼓励开发者在数据边界使用显式解析函数来处理无效数据。
Dictionary facts from ECDICT, WIKTIONARY.