vassilych / cscs

CSCS: Customized Scripting in C#
MIT License
166 stars 47 forks source link

Using semicolon or // in a print statement breaks things #1

Closed AndreNeedham closed 7 years ago

AndreNeedham commented 7 years ago

Try running the following script:

 set(x,0);
 print("x is; ",x);

Expect output: "x is; 0" Actual output: "x is;"

Note the 0 was lost. Trying to print "//" results in a can't extract token error.

(Note I found this from your MSDN version of this code. I haven't tried with the GitHub source. Apologies if you've already fixed it.)

AndreNeedham commented 7 years ago

Closing this out because this issue doesn't exist in your GitHub source, only in the MSDN version.