SyntaxPacket

SyntaxPacket[integer]

is a WSTP packet where integer indicates the position at which a syntax error was detected in the input line.

Examples

Basic Examples  (1)

Launch a subsidiary Wolfram Language kernel process:

Read the first packet:

Write the packet representing the text "10+" to enter:

The evaluation failed, and a SyntaxPacket expression is returned:

Close the link:

Wolfram Research (1996), SyntaxPacket, Wolfram Language function, https://reference.wolfram.com/language/ref/SyntaxPacket.html.

Text

Wolfram Research (1996), SyntaxPacket, Wolfram Language function, https://reference.wolfram.com/language/ref/SyntaxPacket.html.

CMS

Wolfram Language. 1996. "SyntaxPacket." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SyntaxPacket.html.

APA

Wolfram Language. (1996). SyntaxPacket. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SyntaxPacket.html

BibTeX

@misc{reference.wolfram_2024_syntaxpacket, author="Wolfram Research", title="{SyntaxPacket}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/SyntaxPacket.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_syntaxpacket, organization={Wolfram Research}, title={SyntaxPacket}, year={1996}, url={https://reference.wolfram.com/language/ref/SyntaxPacket.html}, note=[Accessed: 21-December-2024 ]}