Open SLabuz95 opened 2 years ago
In most of cases, comment sign # without end of procedure call sign ; isn't intended action. User probably want to write single line comment for procedure call in that line.
User probably dont know that:
If you want to write a comment after procedure call, you have to add end of procedure call sign ; like in example below:
In this case, you will call procedure concat with 1 string argument abc. If you dont write this sign, then comment sign # and everything after that sign will be interpreted as string argument.
or
As a result, you will call procedure concat with 4 or 3 string arguments.
User will never use comment sign # as argument for procedure call.
The interpreter doesnt know how to act in this situation and throw the error (Unknown stat error). As a result, interpreter ignores whole procedure call and comment.
In case of comment sign '#' without end of expression sign ';' :
Beside that user shall have possibility to choose how to generate this incorrect procedure call in the interpreter configuration panel:
More user-friendly interpreter, less errors.
Approved
The application is more user friendly, cause let user slide.
In development
List of states:
Algorithm:
New variables:
Initial idea
In case of sign # in unexpected state of parser, parser shall: