Return to homepage

DOSATO

Copyright © 2024 Sebastiaan Heins

4.1 Errors 11-20

E11: E_EXPECTED_ASSIGNMENT_OPERATOR

Expected an assignment operator. '=' or operator assignment.

make int a = 0
set a 1 // expected =

E12: E_EXPECTED_ASSIGNMENT_OPERATOR_PURE

Expected an assignment operator. '='.

make int a 0 // expected =

E13: E_EXPECTED_BRACKET_ROUND

Expected a round bracket '('.

define void a [] {} // expected ( instead

E14: E_EXPECTED_BRACKET_CURLY

Expected a curly bracket '{'.

define void a () (
    
) // expected { instead

E15: E_EXPECTED_BRACKET_SQUARE

Expected a square bracket '['.

E16: E_EMPTY_EXPRESSION

The expression is empty.

do say (()) // empty expression

E17: E_NON_UNARY_OPERATOR

The operator is not unary.

do say (*2) // * is not unary

E18: E_INCOMPLETE_TERNARY_OPERATOR

The ternary operator is incomplete.

do say (true ? 1) // incomplete ternary operator

E19: E_NON_BINARY_OPERATOR

The operator is not binary.

do say (2 ! 2) // ! is not binary

E20: E_EXPECTED_HASH_OPERATOR

Expected a hash operator '#'.

make array list = [1,2,3,4]
set list+1 = 5 // expected #