Jaseci-Labs / jaclang

The Jac Programming Language
https://www.jac-lang.org
22 stars 21 forks source link

[Issue] Internal error is thrown instead of syntax error in case of not setting an initial value for a global var #67

Closed mgtm98 closed 8 months ago

mgtm98 commented 12 months ago

for the following jac snippet

global integer_variable;
global string_variable = "dsds";

The following internal error is generated

ERROR - jaclang\jac\typing\example.jac, line 0, col 0: Internal Error: 'NoneType' object has no attribute 'resume_parse'
marsninja commented 8 months ago

First line is not legal in Jac.