GrammarApply

GrammarApply[grammar,input]

根据由 grammar 定义的语法,尝试从语法上解析 input.

更多信息和选项

范例

基本范例  (1)

部署相加数字的简单语法:

把部署的语法应用到自然语言字符串:

Wolfram Research (2014),GrammarApply,Wolfram 语言函数,https://reference.wolfram.com/language/ref/GrammarApply.html (更新于 2015 年).

文本

Wolfram Research (2014),GrammarApply,Wolfram 语言函数,https://reference.wolfram.com/language/ref/GrammarApply.html (更新于 2015 年).

CMS

Wolfram 语言. 2014. "GrammarApply." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2015. https://reference.wolfram.com/language/ref/GrammarApply.html.

APA

Wolfram 语言. (2014). GrammarApply. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/GrammarApply.html 年

BibTeX

@misc{reference.wolfram_2024_grammarapply, author="Wolfram Research", title="{GrammarApply}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/GrammarApply.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_grammarapply, organization={Wolfram Research}, title={GrammarApply}, year={2015}, url={https://reference.wolfram.com/language/ref/GrammarApply.html}, note=[Accessed: 22-November-2024 ]}