SyntaxPacket

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

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Launch a subsidiary Wolfram Language kernel process:

In[1]:=
Click for copyable input
Out[1]=

Read the first packet:

In[2]:=
Click for copyable input
Out[2]=

Write the packet representing the text to enter:

In[3]:=
Click for copyable input

The evaluation failed, and a SyntaxPacket expression is returned:

In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=
In[6]:=
Click for copyable input
Out[6]=

Close the link:

In[7]:=
Click for copyable input
Introduced in 1996
(3.0)