Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NICUP14/MiniLang
/ functions
Functions
512 in github.com/NICUP14/MiniLang
⨍
Functions
512
◇
Types & classes
77
↓ 162 callers
Function
print_error
(loc: str, msg: str, parser=None, node=None)
src/Def.py:395
↓ 76 callers
Function
color_str
(color: Color, msg: str)
src/Def.py:388
↓ 68 callers
Method
add_arg
(self, arg: str)
src/Snippet.py:46
↓ 54 callers
Function
print_stdout
(msg: str = '')
src/Def.py:430
↓ 54 callers
Function
rev_type_of
(vtype: VariableType)
src/Def.py:676
↓ 51 callers
Method
curr_token
(self)
src/Parser.py:223
↓ 47 callers
Function
copy_of
(snippet: Snippet)
src/Snippet.py:143
↓ 45 callers
Method
asm
(self)
src/Snippet.py:50
↓ 44 callers
Method
match_token
(self, kind: TokenKind)
src/Parser.py:233
↓ 44 callers
Method
no_more_tokens
(self)
src/Parser.py:217
↓ 40 callers
Function
sdslen
skel/include/sds.h:87
↓ 40 callers
Function
sdslen
tests/aoc-2022/day-2/include/sds.h:87
↓ 40 callers
Function
sdslen
tests/aoc-2022/day-1/include/sds.h:87
↓ 38 callers
Method
next_token
(self)
src/Parser.py:230
↓ 29 callers
Method
reg_str
(self)
src/Def.py:372
↓ 29 callers
Function
sdsfree
Free an sds string. No operation is performed if 's' is NULL. */
skel/include/sds.c:165
↓ 29 callers
Function
sdsfree
Free an sds string. No operation is performed if 's' is NULL. */
tests/aoc-2022/day-2/include/sds.c:165
↓ 29 callers
Function
sdsfree
Free an sds string. No operation is performed if 's' is NULL. */
tests/aoc-2022/day-1/include/sds.c:165
↓ 25 callers
Function
glue_statements
(node_list: List[Optional[Node]], in_call: bool = False)
src/Def.py:1411
↓ 21 callers
Function
full_name_of_var
(name: str, force_local: bool = False, exhaustive_match: bool = True)
src/Def.py:535
↓ 19 callers
Function
_find_signature
(fun: Function, arg_types: List[VariableType], check_len: bool = True, check_refs: bool = False, use_gen: bool
src/Def.py:1314
↓ 18 callers
Function
free_reg
(reg: Register)
src/Def.py:453
↓ 18 callers
Method
kind
(self)
src/Def.py:120
↓ 18 callers
Method
meta_kind
(self)
src/Def.py:123
↓ 18 callers
Method
next_line
(self)
src/Parser.py:205
↓ 17 callers
Function
sdscatlen
Append the specified binary-safe string pointed by 't' of 'len' bytes to the * end of the specified sds string 's'. * * After the call, the passed
skel/include/sds.c:398
↓ 17 callers
Function
sdscatlen
Append the specified binary-safe string pointed by 't' of 'len' bytes to the * end of the specified sds string 's'. * * After the call, the passed
tests/aoc-2022/day-2/include/sds.c:398
↓ 17 callers
Function
sdscatlen
Append the specified binary-safe string pointed by 't' of 'len' bytes to the * end of the specified sds string 's'. * * After the call, the passed
tests/aoc-2022/day-1/include/sds.c:398
↓ 16 callers
Function
modf_of
(kind: VariableKind)
src/Def.py:474
↓ 15 callers
Function
size_of
(ckind: VariableCompKind)
src/Def.py:1206
↓ 14 callers
Function
alloc_reg
(reg: Register = Register.id_max, opd: Operand = None)
src/Def.py:434
↓ 13 callers
Function
sdsnew
Create a new sds string starting from a null terminated C string. */
skel/include/sds.c:154
↓ 13 callers
Function
sdsnew
Create a new sds string starting from a null terminated C string. */
tests/aoc-2022/day-2/include/sds.c:154
↓ 13 callers
Function
sdsnew
Create a new sds string starting from a null terminated C string. */
tests/aoc-2022/day-1/include/sds.c:154
↓ 13 callers
Function
type_compatible
(kind: NodeKind, ckind: VariableCompKind, ckind2: VariableCompKind, ref_is_ptr: bool = True)
src/Def.py:893
↓ 12 callers
Function
args_to_list
(node: Node)
src/Def.py:1281
↓ 12 callers
Function
c_rev_type_of
(vtype: VariableType)
src/backend/c/CDef.py:24
↓ 12 callers
Function
gen_load
(opd: Operand)
src/Gen.py:193
↓ 12 callers
Function
ref_of
(vtype: VariableType)
src/Def.py:1383
↓ 12 callers
Method
token_list_to_tree
(self)
src/Parser.py:256
↓ 12 callers
Function
type_of_ident
(ident: str)
src/Def.py:747
↓ 11 callers
Method
compound_statement
(self, add_predef: bool = True)
src/Parser.py:1310
↓ 10 callers
Function
bin_snippet
left_opd: src right_opd: dest
src/Gen.py:446
↓ 10 callers
Function
gen_load_ptr
(opd: Operand, vtype: VariableType = default_type)
src/Gen.py:162
↓ 10 callers
Function
to_predeferred
(node: Node)
src/Def.py:1432
↓ 10 callers
Function
type_of_lit
(kind: NodeKind, name: str = '')
src/Def.py:799
↓ 9 callers
Method
check_ident
(self, name: str, meta_kind: Optional[VariableMetaKind] = None, use_mkind: bool = False)
src/Parser.py:412
↓ 9 callers
Method
curr_line
(self)
src/Parser.py:198
↓ 9 callers
Function
free_all_regs
()
src/Def.py:458
↓ 9 callers
Method
no_more_lines
(self, check_next_lines: bool = False)
src/Parser.py:194
↓ 9 callers
Method
node_kind_of
(self, kind: TokenKind)
src/Parser.py:268
↓ 9 callers
Function
rev_of
(ckind: VariableCompKind, name: str = None)
src/Def.py:616
↓ 9 callers
Function
sdsMakeRoomFor
Enlarge the free space at the end of the sds string so that the caller * is sure that after calling this function can overwrite up to addlen * bytes
skel/include/sds.c:204
↓ 9 callers
Function
sdsMakeRoomFor
Enlarge the free space at the end of the sds string so that the caller * is sure that after calling this function can overwrite up to addlen * bytes
tests/aoc-2022/day-2/include/sds.c:204
↓ 9 callers
Function
sdsMakeRoomFor
Enlarge the free space at the end of the sds string so that the caller * is sure that after calling this function can overwrite up to addlen * bytes
tests/aoc-2022/day-1/include/sds.c:204
↓ 9 callers
Function
sdssetlen
skel/include/sds.h:130
↓ 9 callers
Function
sdssetlen
tests/aoc-2022/day-2/include/sds.h:130
↓ 9 callers
Function
sdssetlen
tests/aoc-2022/day-1/include/sds.h:130
↓ 8 callers
Function
curr_scope
()
src/Def.py:502
↓ 8 callers
Function
gen_tree
(node: Node, parent: Optional[Node], curr_label: int)
src/Gen.py:577
↓ 8 callers
Function
sdsHdrSize
skel/include/sds.c:44
↓ 8 callers
Function
sdsHdrSize
tests/aoc-2022/day-2/include/sds.c:44
↓ 8 callers
Function
sdsHdrSize
tests/aoc-2022/day-1/include/sds.c:44
↓ 8 callers
Function
sdsavail
skel/include/sds.h:104
↓ 8 callers
Function
sdsavail
tests/aoc-2022/day-2/include/sds.h:104
↓ 8 callers
Function
sdsavail
tests/aoc-2022/day-1/include/sds.h:104
↓ 8 callers
Function
sdsnewlen
Create a new sds string with the content specified by the 'init' pointer * and 'initlen'. * If NULL is used for 'init' the string is initialized wit
skel/include/sds.c:89
↓ 8 callers
Function
sdsnewlen
Create a new sds string with the content specified by the 'init' pointer * and 'initlen'. * If NULL is used for 'init' the string is initialized wit
tests/aoc-2022/day-2/include/sds.c:89
↓ 8 callers
Function
sdsnewlen
Create a new sds string with the content specified by the 'init' pointer * and 'initlen'. * If NULL is used for 'init' the string is initialized wit
tests/aoc-2022/day-1/include/sds.c:89
↓ 7 callers
Function
gen_widen
(opd: Operand, var_type: VariableType = default_type)
src/Gen.py:284
↓ 7 callers
Function
ref_node
(node: Node)
src/Def.py:1402
↓ 7 callers
Function
rev_of
(ckind: VariableCompKind)
src/backend/c/CDef.py:33
↓ 7 callers
Function
sdsempty
Create an empty (zero length) sds string. Even in this case the string * always has an implicit null term. */
skel/include/sds.c:149
↓ 7 callers
Function
sdsempty
Create an empty (zero length) sds string. Even in this case the string * always has an implicit null term. */
tests/aoc-2022/day-2/include/sds.c:149
↓ 7 callers
Function
sdsempty
Create an empty (zero length) sds string. Even in this case the string * always has an implicit null term. */
tests/aoc-2022/day-1/include/sds.c:149
↓ 7 callers
Function
type_of
(sym: str, err=True)
src/Def.py:590
↓ 6 callers
Function
off_of
(ident: str)
src/Def.py:569
↓ 6 callers
Method
ref
(self, node: Node)
src/Parser.py:795
↓ 6 callers
Function
sdscatprintf
Append to the sds string 's' a string obtained using printf-alike format * specifier. * * After the call, the modified sds string is no longer vali
skel/include/sds.c:591
↓ 6 callers
Function
sdscatprintf
Append to the sds string 's' a string obtained using printf-alike format * specifier. * * After the call, the modified sds string is no longer vali
tests/aoc-2022/day-2/include/sds.c:591
↓ 6 callers
Function
sdscatprintf
Append to the sds string 's' a string obtained using printf-alike format * specifier. * * After the call, the modified sds string is no longer vali
tests/aoc-2022/day-1/include/sds.c:591
↓ 6 callers
Function
sdsdup
Duplicate an sds string. */
skel/include/sds.c:160
↓ 6 callers
Function
sdsdup
Duplicate an sds string. */
tests/aoc-2022/day-2/include/sds.c:160
↓ 6 callers
Function
sdsdup
Duplicate an sds string. */
tests/aoc-2022/day-1/include/sds.c:160
↓ 6 callers
Function
sdsrange
Turn the string into a smaller (or equal) string containing only the * substring specified by the 'start' and 'end' indexes. * * start and end can
skel/include/sds.c:756
↓ 6 callers
Function
sdsrange
Turn the string into a smaller (or equal) string containing only the * substring specified by the 'start' and 'end' indexes. * * start and end can
tests/aoc-2022/day-2/include/sds.c:756
↓ 6 callers
Function
sdsrange
Turn the string into a smaller (or equal) string containing only the * substring specified by the 'start' and 'end' indexes. * * start and end can
tests/aoc-2022/day-1/include/sds.c:756
↓ 5 callers
Function
gc_allocation_map_get
skel/include/gc.c:245
↓ 5 callers
Function
gc_allocation_map_get
tests/aoc-2022/day-2/include/gc.c:245
↓ 5 callers
Function
gc_allocation_map_get
tests/aoc-2022/day-1/include/gc.c:245
↓ 5 callers
Function
gen_load_addr
(opd: Operand)
src/Gen.py:174
↓ 5 callers
Function
ml_walk
(node)
src/backend/ml/MLWalker.py:202
↓ 5 callers
Function
needs_widen
(ckind: VariableCompKind, ckind2: VariableCompKind)
src/Def.py:1153
↓ 5 callers
Function
rv_ref_of
(vtype: VariableType)
src/Def.py:1387
↓ 5 callers
Function
sdsinclen
skel/include/sds.h:154
↓ 5 callers
Function
sdsinclen
tests/aoc-2022/day-2/include/sds.h:154
↓ 5 callers
Function
sdsinclen
tests/aoc-2022/day-1/include/sds.h:154
↓ 5 callers
Function
token_is_op
(kind: TokenKind)
src/Lexer.py:271
↓ 4 callers
Function
_c_walk
(node)
src/backend/c/CWalker.py:292
↓ 4 callers
Method
array_elem_declaration
(self, array: Node, elem: Node, idx: int)
src/Parser.py:2383
next →
1–100 of 512, ranked by callers