({{, (RefLink[SyntaxPacket, paclet:ref/SyntaxPacket])[integer] 
is a WSTP packet where integer indicates the position at which a syntax error was detected in the input line.}})

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Launch a subsidiary Wolfram Language kernel process:

link=LinkLaunch[First[$CommandLine] <> " -mathlink"]

Read the first packet:

LinkRead[link]

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

LinkWrite[link,EnterTextPacket["10+"]]

The evaluation failed, and a (RefLink[SyntaxPacket, paclet:ref/SyntaxPacket]) expression is returned:

LinkRead[link]

LinkRead[link]

LinkRead[link]

Close the link:

LinkClose[link]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[SyntaxQ, paclet:ref/SyntaxQ])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[WSTP and External Program Communication, paclet:tutorial/WSTPAndExternalProgramCommunicationOverview])}})}})