Skip to content

Interpreter code's error

hello31337 edited this page May 7, 2019 · 10 revisions

There are several error messages for each type of errors in user defined code.

Only 255 or less chars are allowed per single code line.

Cause

You wrote more than 255 characters per line.

Solution

Reduce the characters to 255 or less per line.

Input Program exceeded max line limit.

Cause

Your code exceeded 2000 lines (at the time of ver1.0).

Solution

Reduce the number of lines of your code.

String literal is not properly closed by Double Quotation.

Cause

String literal in your code isn't closed by " properly.

Solution

Close string literal with " like "this is string".

Illegal token is detected.

Cause

Lexical analyzer failed to identify obtained token to any kind. Maybe some unsupported characters like multi-byte characters exist at your code.

Solution

Remove multi-byte characters or any unsupported characters from your code.

Illegal token kind.

Cause

Most likely cause is incorrespondence of parenthesis like var ary1[10), func sbrtn1(a, b].

Solution

Fix syntax error of your code.

Illegal break sentence.

Cause

break sentence is used at out of proper scope (for or while).

Solution

Put break sentence correctly.

Illegal return sentence.

Cause

return sentence is used at out of func scope.

Solution

Put break sentence inside func scope.

Illegal description.

Cause

Probably you put some sentences incorrectly with in the same line. For example, following code:

var a = 1000

if if a == 1000
    a = 2000
end

has multiple if sentence incorrectly within the same line.

Solution

Put the sentence correctly.

Main function cannot be called by user code.

Cause

main() function calling is described at your code. main() function can be called only by BI-SGX interpreter internally.

Solution

Do not call main() function in your code.

Implicit declaration is prohibited by option.

Cause

You defined some variable implicitly, though you use "var" option.

Solution

Define variable explicitly with var sentence like var a, b.

Unsupported option type.

Cause

You designated unsupported option with option sentence. Currently only var option is supported.

Solution

Remove unsupported option designation.

<something> is not an identifier.

Cause

The name of declared variable by var is conflicted with reserved word or is numeral.

Solution

Declare appropriate variable name.

(TBD)