Skip to content

Latest commit

 

History

History
65 lines (39 loc) · 1.8 KB

ew.md

File metadata and controls

65 lines (39 loc) · 1.8 KB

Errors & Warnings

ERROR
	Conflict variables	-- Variables have the same name in the same scope
	Conflict function(s)	-- Functions or functions and variable have the same name even in different scope
	Wrong assignment	-- Assigning to invalid integer variable, or even not-a-variable
	Wrong parameter(s)	-- Assigning invalid actual parameters to the function call
	Wrong expression	-- Using arithmetic expression in condition
	Undefined variable  -- Using an undefined variable
	Undefined function  -- Using an undefined function (the function may be declared)

WARNING	
	Mixed expression	-- Mix the logical and arithmatic expressions together
	No return		-- The last statement in the function body is not a return
	Function declarition in function body	-- Declare a function inside another function body, which is allowed, but highly unrecommended!

Errors

Conflict variables

conflict_variables

Notice that variables in different scopes with the same name are allowed.

duplicate_variables_in_different_scope

Conflict function(s)

conflict_functions

Wrong assignment

wrong_assignment

Wrong parameter(s)

wrong_actual_parameters

Wrong expression

wrong_expression

Undefined variable

undefined_variable

Undefined function

undefined_function

Warnings

Mixed expressions

mixed_expressions

No return

no_return

Function declaration in function body

function_declaration_in_function_body