GrammarApply

GrammarApply[grammar,input]

attempts to parse input according to the grammar defined by grammar.

Details and Options

Examples

Basic Examples  (1)

Deploy a simple grammar for adding numbers:

Apply the deployed grammar to a natural language string:

Wolfram Research (2014), GrammarApply, Wolfram Language function, https://reference.wolfram.com/language/ref/GrammarApply.html (updated 2015).

Text

Wolfram Research (2014), GrammarApply, Wolfram Language function, https://reference.wolfram.com/language/ref/GrammarApply.html (updated 2015).

CMS

Wolfram Language. 2014. "GrammarApply." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/GrammarApply.html.

APA

Wolfram Language. (2014). GrammarApply. Wolfram Language & System Documentation Center. Retrieved from 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 ]}