TheRealMichaelWang/cish

Gives a unexpected token error but gives no location of the error.

Closed this issue · 2 comments

I made a hello world program and after changing import to include, it gave me a invalid token error but no location of the error. Here is my code:
include "io.txt";
print("Hello, World!")

You need to add a semicolon after each statement.

include "io.txt";
print("Hello, World!")

If its a syntax error, the compiler would give you the row and column number in addition to everything left on the said errors line.