로딩중...
검색중...
일치하는것 없음
errCode.inl
1// common:
2PAIRX(UNKNOWN, "unknown")
3PAIRX(MSG, "%s")
4PAIRX(IS_NUL, "%s is null")
5PAIRX(FILE_NOT_OPEN, "can't open %s file.")
6
7// location:
8PAIRX(NO_ROW_INFO, "this expr doesn't have row info")
9PAIRX(NO_COL_INFO, "this expr doesn't have col info")
10
11// node:
12PAIRX(CANT_ACCESS, "there is no '%s' in '%s'")
13PAIRX(AMBIGIOUS_ACCESS, "ambigious access found on '%s'")
14PAIRX(DUP_VAR, "duplicated variable '%s' found")
15PAIRX(ACCESS_TO_INCOMPLETE, "accesses to incomplete object")
16
17// obj:
18PAIRX(CANT_CAST_TO_NODE, "obj can't be cast into node class")
19PAIRX(OBJ_WRONG_ARGS, "%s can't eval with this argument types '%s'. they should be '%s'")
20PAIRX(OBJ_ALREADY_EXIST, "\'%s\' object already exists at %s")
21
22// func:
23PAIRX(FUNC_DONT_HAVE_ME, "parameters of func not included 'me'")
24PAIRX(FUNC_REDIRECTED_OBJ, "all funcs should be redirected by object")
25PAIRX(MAIN_FUNC_RET_TYPE, "\'main\' func return type should be int or void")
26PAIRX(ALREADY_DEFINED_FUNC, "same name and params of the func '%s' was already defined in this scope")
27PAIRX(ALREADY_DEFINED_IDENTIFIER, "same identifier of func '%s' was already defined in this scope")
28PAIRX(RETURN_VALUE_IS_NUL, "return value of %s() was null.")
29
30// ctor:
31PAIRX(CTOR_NOT_IN_DEF_OBJ, "ctor should be inside of 'def' block.")
32
33// parser:
34PAIRX(SYNTAX_ERR, "syntax error %s expected, but %s found")
35PAIRX(UNEXPECTED_TOK, "unexpected token '%s' found")
36PAIRX(WRONG_INDENT_LV,
37 "invalid indentation level found. expected %d columns but it was %d. I'm assuming you were "
38 "trying to give %d columns")
39PAIRX(PARSING_HAS_ERR, "parsing has done. but something went wrong: %d")
40PAIRX(NO_SRC, "source code not provided")
41PAIRX(SRC_EMPTY, "source code was empty string.")
42PAIRX(NO_FUNC_REGISTERED, "there is no func info registering")
43
44// starter:
45PAIRX(NO_MAIN_FUNC, "there is 0 or more than 2 main() found.")
46
47// thread:
48PAIRX(THERE_IS_NO_FRAMES_IN_THREAD, "there is no frames in current thread.")
49PAIRX(FRAME_DOESNT_HAVE_OBJ_SCOPE, "current frame doesn't have any obj scope.")
50PAIRX(FRAME_DOESNT_HAVE_SCOPE_MATCHING_THIS_TYPE, "current frame doesn't have proper scope matching to %s.")
51
52// pod:
53PAIRX(POD_ONLY_ALLOW_VAR_ACCESS, "variable path only allowed when you define a pod")
54PAIRX(NO_POD_TRAY, "pod tray hasn't been created before")
55PAIRX(NO_POD, "no pod has been specified")
56PAIRX(POD_NOT_MATCH, "pod %s expected, but it was %s")
57PAIRX(POD_NOT_LOADED, "couldn't load the pod at `%s` path")
58
59// expr:
60PAIRX(NOT_EXPR, "\'%s\' isn't a expression")
61PAIRX(EXPR_EVAL_NUL, "expression evaluated as null type")
62// defVar:
63PAIRX(CANT_DEF_VAR, "definining variable '%s %s' wouldn't allowed here")
64PAIRX(ALREADY_DEFINED_VAR, "variable '%s %s' was already defined in this scope")
65PAIRX(HAS_NO_NAME, "variable should have a name")
66PAIRX(NO_ORIGIN, "there is no origin %s object")
67PAIRX(TYPE_NOT_EXIST, "when defines variable '%s', couldn't find the type of it.")
68PAIRX(DONT_HAVE_CTOR, "%s's type doesn't have a constructor without parameter.")
69PAIRX(TYPE_NOT_DEDUCED, "type can't be infered into meaningful one.")
70PAIRX(NO_VOID_CONTAINER, "you can't make a void container")
71PAIRX(TYPE_IS_NOT_PRE_EVALUATED, "there is something wrong in pre-evaluation to define %s variable.")
72PAIRX(PROTECTED_NOT_ALLOWED_FOR_LOCAL, "you can't declare 'protected' modifier for a local variable, %s")
73PAIRX(OVERRIDE_NOT_ALLOWED_FOR_LOCAL, "you can't decalre 'explicit-override' for a local varaible, %s")
74PAIRX(MODIFIER_NOT_FOUND, "parser didn't make a modifier for this symbol, %s")
75PAIRX(CANT_ACCESS_TO_PROTECTED_VARIABLE, "you can't access this %s variable. it's protected.")
76PAIRX(EXPLICIT_TYPE_SHOULDNT_BE_NULL, "explicit type shouldn't be null when you define it.")
77PAIRX(NO_VOID_VARIABLE, "you can't define a varaible as void type")
78PAIRX(SHORT_DEF_VAR_ONLY_ALLOWED_TO_CUSTOM_TYPE, "short definition isn't allowed to array or primitive types")
79PAIRX(COULDNT_MAKE_INSTANCE_UNEXPECTEDLY, "couldn't make an instance unexpectedly")
80PAIRX(YOU_CANT_DEFINE_PROPERTY_WITH_ABSTRACT_FUNC, "you can't define property with abstract func")
81// defSeq:
82PAIRX(SEQ_SHOULD_INT_COMPATIBLE, "start and end of a sequence should be sort of an int.")
83// assign:
84PAIRX(TYPE_NOT_COMPATIBLE, "rhs type '%s' is not compatible to lhs '%s' of this assigment")
85PAIRX(ASSIGN_TO_RVALUE, "you can't assign %s to this unamed %s. please define it first")
86PAIRX(ASSIGN_TO_CONST, "to assign value to '%s' const object is not allowed")
87PAIRX(ASSIGN_TO_FUNC, "you can't assign closure to a defined func")
88PAIRX(COULDNT_GET_ITER_FOR_LHS, "couldn't get iterator for `%s`")
89// type:
90PAIRX(CAST_NOT_AVAILABLE, "couldn't cast %s type as %s")
91PAIRX(LHS_IS_NUL, "lhs of the expression is null")
92PAIRX(RHS_IS_NUL, "rhs of the expression is null")
93PAIRX(EXPR_SHOULDNT_BE_HERE, "expression shouldn't be here")
94PAIRX(IMPLICIT_CAST_NOT_AVAILABLE, "couldn't implicit cast %s type as %s")
95PAIRX(VOID_NOT_CAST, "casting to the void type isn't allowed")
96PAIRX(CAST_TO_UNKNOWN, "cast to unknown type")
97PAIRX(CTOR_CANT_CAST_TO_CLOSURE, "constructor can't be casted to a closure")
98PAIRX(ARR_DOESNT_HAVE_TYPE_PARAM, "array doesn't have type parameter.")
99PAIRX(ARR_RETURNING_SOMETHING, "block returning something can't be evaluated as an array.")
100PAIRX(CONVERGE_INFO_IS_NULL, "couldn't converge types. some type info was null")
101PAIRX(CONVERGE_INFO_NOT_ACCESSIBLE, "couldn't converge type of %s")
102// arithmetic operation:
103PAIRX(LHS_IS_NOT_ARITH, "lhs '%s' is not arithmetic type")
104PAIRX(RHS_IS_NOT_ARITH, "rhs '%s' is not arithmetic type")
105// defObj:
106PAIRX(ORIGIN_OBJ_CANT_BE_CONST, "origin object can't be defined with 'const'")
107PAIRX(COMPLETE_OBJ_BUT_NO_CTOR, "complete object should have a ctor without any parameters")
108PAIRX(CANT_CALL_COMPLETE_FOR_INCOMPLETE, "incomplete object couldn't have any call complete.")
109PAIRX(UNEXPECTED_ATTR, "unexpected attribute found")
110// generics:
111PAIRX(SHOULD_TYPE_PARAM_NAME, "'%s' type parameter wasn't be defined as new name.")
112PAIRX(MAKE_GENERIC_FAIL, "construction '%s' for generic obj has failed.")
113PAIRX(GENERIC_TYPE_PARAM_DUPLICATED, "type parameter '%s' was duplicated.")
114// func-call:
115PAIRX(FUNC_NOT_EXIST, "this func doesn't exist.")
116PAIRX(DONT_KNOW_ME, "I don't know what the 'me' object is to call this func.")
117// retState:
118PAIRX(BREAK_OUTSIDE_OF_LOOP, "use 'break' outside of a loop")
119PAIRX(NEXT_OUTSIDE_OF_LOOP, "use 'next' outside of a loop")
120PAIRX(LOOP_NO_RET_ARR, "loop expression didn't return an array")
121// if:
122PAIRX(CONDITION_IS_EMPTY, "condition expression is empty")
123PAIRX(CONDITION_CANT_CAST_TO_BOOL, "condition expression can't cast to bool type.")
124// getExpr:
125PAIRX(WHAT_IS_THIS_IDENTIFIER, "I don't know what '%s' is.")
126PAIRX(IDENTIFIER_ONLY, "You can't use type or generic for '%s'")
127// defAssign:
128PAIRX(RHS_NOT_EVALUATED,
129 "I can't define a new variable here because there is a problem with the expression on the "
130 "right.")
131PAIRX(VOID_CANT_DEFINED, "you can't define a variable to void type")
132PAIRX(CANT_ASSIGN_RET, "rhs has 'ret' which is not appropriate to assign.")
133
134// end:
135PAIRX(END_ONLY_BE_IN_A_FUNC, "you've to use 'end' inside of a func.")
136
137// func:("verify: arithmeticExpr: lhs & rhs should bind something.");
138//
139// WHEN_NUL(it.getLeft(), it.getRight())
140//
141PAIRX(PARAM_HAS_VAL, "parameter must take a form of '<name> <type>'")
142PAIRX(FUNC_HAS_NO_NAME, "a function should have a name")
143PAIRX(WRONG_RET_TYPE, "%s is not a valid return type")
144PAIRX(NO_RET_TYPE, "return type is not specified")
145PAIRX(NO_FUNC_INFO, "function info doesn't exist")
146PAIRX(MAIN_SHOULD_HAVE_STMTS, "'main' function need to contain more than 1 statement inside")
147PAIRX(RET_TYPE_NOT_MATCH, "return type is %s. and it's not valid to return type of func, %s")
148PAIRX(PARAM_NOT_VOID, "parameter '%s' shouldn't be a void type")
149PAIRX(FUNC_SHOULD_RETURN_SOMETHING, "function should return something")
150PAIRX(RET_ERR_ON_CTOR, "returning err on function not allowed")
151
152// closure:
153PAIRX(NOT_CAPTURED, "closure don't capture any scopes.")
154PAIRX(NOT_HAS_FUNC, "closure don't refer a func")
155PAIRX(CANT_RETURN_A_CLOSURE, "it seems that you tried to return a closure of a func, but I couldn't")
156
157// block:
158PAIRX(RET_AT_MIDDLE_OF_BLOCK, "use 'ret' at last of block stmt.")
159PAIRX(BLK_CANT_MAKE_FRAME, "block statement failed to construct frame structure")
160PAIRX(THERE_IS_NO_BLOCK_STMT, "block statement expected, but couldn't find.")
161
162// container:
163PAIRX(ELEM_TYPE_IS_NUL, "there is no elem type")
164PAIRX(ELEM_TYPE_DEDUCED_NUL, "elem type has been infered to null")
165PAIRX(ELEM_TYPE_DEDUCED_WRONG, "elem type has been infered to %s type")
166PAIRX(ELEM_TYPE_NOT_VOID, "elem type shouldn't be the void type")
167PAIRX(CONTAINER_IS_NUL, "there is no container")
168PAIRX(ITERATOR_IS_NUL, "null iterator has been used")
169PAIRX(VALUE_IS_NUL, "tried to add/delete null value")
170PAIRX(ITERATOR_NOT_BELONG_TO_CONTAINER, "this iterator is not belonged to this container.")
171PAIRX(OUT_OF_RANGE, "given index '%d' is out of range. container's length is %d")
172PAIRX(ITERATORS_ARENT_SAME_DIRECTION, "these iterators aren't same direction.")
173
174// operator:
175PAIRX(STRING_IS_NOT_PROPER_TO_OP, "string type isn't suitable to this operators.")
176PAIRX(PARANTHESIS_WAS_TUPLE, "paranthesis was tuple only contains 1 expression")
177
178// signal:
179PAIRX(SIG_SEGV, "segmentation fault")
180PAIRX(SIG_INT, "external interrupt")
181PAIRX(SIG_ILL, "invalid program image")
182PAIRX(SIG_ABORT, "abonormal termination condition")
183PAIRX(SIG_FPE, "erroneous arithmetic operation")
184PAIRX(SIG_TERM, "termination request")
185
186// option:
187PAIRX(OPTION_CANT_CLUSTERED,
188 "you can't use option `%s` clustered but it needs to take arguments.\nput it at the very end.")
189PAIRX(UNKNOWN_OPTION, "%s")
190PAIRX(OPTION_NEEDS_TRAILING_ARG, "option `%s` needs trailing arguments")
191
192// flag:
193PAIRX(NO_SRC_FOUND_ON_THE_PATH, "there is no src file in the given path, `%s`")
to Top