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
↓ 4 callers
Method
declare
(self, full_name: str, var_type: VariableType, elem_ckind: VariableCompKind = default_ckind, elem_cnt: int = 0
src/Parser.py:2474
↓ 4 callers
Function
full_name_of_fun
(name: str, force_global: bool = False, exhaustive_match: bool = True)
src/Def.py:513
↓ 4 callers
Method
fun_declaration
(self, is_extern: bool = False, in_generic: bool = False, is_sig: bool = False)
src/Parser.py:1819
↓ 4 callers
Function
gc_hash
skel/include/gc.c:195
↓ 4 callers
Function
gc_hash
tests/aoc-2022/day-2/include/gc.c:195
↓ 4 callers
Function
gc_hash
tests/aoc-2022/day-1/include/gc.c:195
↓ 4 callers
Function
label
()
src/Gen.py:40
↓ 4 callers
Method
load
(self)
src/Def.py:364
↓ 4 callers
Method
merge_fun_call
(self, node: Node)
src/Parser.py:466
↓ 4 callers
Function
next_prime
skel/include/gc.c:67
↓ 4 callers
Function
next_prime
tests/aoc-2022/day-2/include/gc.c:67
↓ 4 callers
Function
next_prime
tests/aoc-2022/day-1/include/gc.c:67
↓ 4 callers
Method
parse
(self, source: str = '')
src/Parser.py:185
↓ 4 callers
Function
print_warning
(loc: str, msg: str, parser=None, node=None)
src/Def.py:414
↓ 4 callers
Method
statement
(self, add_predef: bool = True)
src/Parser.py:1236
↓ 4 callers
Function
tree_str
(node: Node, parent: Node = None, cnt: int = 0)
src/GenStr.py:44
↓ 3 callers
Method
_fun_call
(self, fun_name: str, node_stack: List[Node], check_len: bool = True, is_sig: bool = False)
src/Parser.py:706
↓ 3 callers
Method
declaration
(self, is_struct: bool = False)
src/Parser.py:2591
↓ 3 callers
Function
fun_call_tree_str
(node: Node, func)
src/backend/Walker.py:18
↓ 3 callers
Function
gc_allocation_delete
* Delete an allocation object. * * Deletes the allocation object pointed to by `a`, but does *not* * free the memory pointed to by `a->ptr`. * *
skel/include/gc.c:117
↓ 3 callers
Function
gc_allocation_delete
* Delete an allocation object. * * Deletes the allocation object pointed to by `a`, but does *not* * free the memory pointed to by `a->ptr`. * *
tests/aoc-2022/day-2/include/gc.c:117
↓ 3 callers
Function
gc_allocation_delete
* Delete an allocation object. * * Deletes the allocation object pointed to by `a`, but does *not* * free the memory pointed to by `a->ptr`. * *
tests/aoc-2022/day-1/include/gc.c:117
↓ 3 callers
Function
gc_allocation_map_put
skel/include/gc.c:258
↓ 3 callers
Function
gc_allocation_map_put
tests/aoc-2022/day-2/include/gc.c:258
↓ 3 callers
Function
gc_allocation_map_put
tests/aoc-2022/day-1/include/gc.c:258
↓ 3 callers
Function
gc_allocation_map_remove
skel/include/gc.c:302
↓ 3 callers
Function
gc_allocation_map_remove
tests/aoc-2022/day-2/include/gc.c:302
↓ 3 callers
Function
gc_allocation_map_remove
tests/aoc-2022/day-1/include/gc.c:302
↓ 3 callers
Function
gc_allocation_map_resize_to_fit
skel/include/gc.c:227
↓ 3 callers
Function
gc_allocation_map_resize_to_fit
tests/aoc-2022/day-2/include/gc.c:227
↓ 3 callers
Function
gc_allocation_map_resize_to_fit
tests/aoc-2022/day-1/include/gc.c:227
↓ 3 callers
Function
gen_write_var
(opd: Operand)
src/Gen.py:243
↓ 3 callers
Method
inject_cond
(self, node: Node)
src/Parser.py:1425
↓ 3 callers
Function
is_generic
(sig: FunctionSignature)
src/Def.py:1321
↓ 3 callers
Function
rev_type_of_ident
(name: str)
src/Def.py:607
↓ 3 callers
Function
sdsReqType
skel/include/sds.c:60
↓ 3 callers
Function
sdsReqType
tests/aoc-2022/day-2/include/sds.c:60
↓ 3 callers
Function
sdsReqType
tests/aoc-2022/day-1/include/sds.c:60
↓ 3 callers
Function
sdscat
Append the specified null termianted C string to the sds string 's'. * * After the call, the passed sds string is no longer valid and all the * ref
skel/include/sds.c:413
↓ 3 callers
Function
sdscat
Append the specified null termianted C string to the sds string 's'. * * After the call, the passed sds string is no longer valid and all the * ref
tests/aoc-2022/day-2/include/sds.c:413
↓ 3 callers
Function
sdscat
Append the specified null termianted C string to the sds string 's'. * * After the call, the passed sds string is no longer valid and all the * ref
tests/aoc-2022/day-1/include/sds.c:413
↓ 3 callers
Function
sdscmp
Compare two sds strings s1 and s2 with memcmp(). * * Return value: * * positive if s1 > s2. * negative if s1 < s2. * 0 if s1 and s2
skel/include/sds.c:807
↓ 3 callers
Function
sdscmp
Compare two sds strings s1 and s2 with memcmp(). * * Return value: * * positive if s1 > s2. * negative if s1 < s2. * 0 if s1 and s2
tests/aoc-2022/day-2/include/sds.c:807
↓ 3 callers
Function
sdscmp
Compare two sds strings s1 and s2 with memcmp(). * * Return value: * * positive if s1 > s2. * negative if s1 < s2. * 0 if s1 and s2
tests/aoc-2022/day-1/include/sds.c:807
↓ 3 callers
Function
sdstrim
Remove the part of the string from left and from right composed just of * contiguous characters found in 'cset', that is a null terminated C string.
skel/include/sds.c:725
↓ 3 callers
Function
sdstrim
Remove the part of the string from left and from right composed just of * contiguous characters found in 'cset', that is a null terminated C string.
tests/aoc-2022/day-2/include/sds.c:725
↓ 3 callers
Function
sdstrim
Remove the part of the string from left and from right composed just of * contiguous characters found in 'cset', that is a null terminated C string.
tests/aoc-2022/day-1/include/sds.c:725
↓ 3 callers
Method
struct_elem_declaration
(self, names: List[str], og_struct: Structure)
src/Parser.py:2441
↓ 3 callers
Function
type_of_op
(kind: NodeKind, prev_type: Optional[VariableType] = None)
src/Def.py:825
↓ 2 callers
Method
_gen_fun_call
(self, sig: FunctionSignature)
src/Parser.py:568
↓ 2 callers
Method
_infer_gen_types
(self, sig: FunctionSignature, node: Node)
src/Parser.py:549
↓ 2 callers
Function
_rev_type_of
(var_type: VariableType)
src/Def.py:950
↓ 2 callers
Function
_sig_args_compat
(sig: FunctionSignature, sig2: FunctionSignature)
src/Def.py:937
↓ 2 callers
Function
_sig_compat
(fun: Function, name: str)
src/Def.py:949
↓ 2 callers
Function
allowed_op
(ckind: VariableCompKind)
src/Def.py:982
↓ 2 callers
Function
arg_cnt
(node: Node)
src/Def.py:1272
↓ 2 callers
Function
c_rev_type_of_ident
(name: str)
src/backend/c/CDef.py:73
↓ 2 callers
Function
cmp_modf_of
(kind: NodeKind)
src/Def.py:1451
↓ 2 callers
Function
compute_signature
(name: str, arg_types: List[VariableType])
src/Def.py:1406
↓ 2 callers
Method
expand_macro
(self, macro: Macro, node: Optional[Node])
src/Parser.py:495
↓ 2 callers
Function
find_signature
(fun: Function, node: Node, use_gen: bool = True)
src/Def.py:1361
↓ 2 callers
Function
gc_allocate
skel/include/gc.c:347
↓ 2 callers
Function
gc_allocate
tests/aoc-2022/day-2/include/gc.c:347
↓ 2 callers
Function
gc_allocate
tests/aoc-2022/day-1/include/gc.c:347
↓ 2 callers
Function
gc_allocation_map_resize
skel/include/gc.c:200
↓ 2 callers
Function
gc_allocation_map_resize
tests/aoc-2022/day-2/include/gc.c:200
↓ 2 callers
Function
gc_allocation_map_resize
tests/aoc-2022/day-1/include/gc.c:200
↓ 2 callers
Function
gc_make_root
skel/include/gc.c:381
↓ 2 callers
Function
gc_make_root
tests/aoc-2022/day-2/include/gc.c:381
↓ 2 callers
Function
gc_make_root
tests/aoc-2022/day-1/include/gc.c:381
↓ 2 callers
Function
gc_malloc
skel/include/gc.c:389
↓ 2 callers
Function
gc_malloc
tests/aoc-2022/day-2/include/gc.c:389
↓ 2 callers
Function
gc_malloc
tests/aoc-2022/day-1/include/gc.c:389
↓ 2 callers
Function
gc_malloc_ext
skel/include/gc.c:407
↓ 2 callers
Function
gc_malloc_ext
tests/aoc-2022/day-2/include/gc.c:407
↓ 2 callers
Function
gc_malloc_ext
tests/aoc-2022/day-1/include/gc.c:407
↓ 2 callers
Function
gc_mark_alloc
skel/include/gc.c:505
↓ 2 callers
Function
gc_mark_alloc
tests/aoc-2022/day-2/include/gc.c:505
↓ 2 callers
Function
gc_mark_alloc
tests/aoc-2022/day-1/include/gc.c:505
↓ 2 callers
Function
gc_mcalloc
skel/include/gc.c:336
↓ 2 callers
Function
gc_mcalloc
tests/aoc-2022/day-2/include/gc.c:336
↓ 2 callers
Function
gc_mcalloc
tests/aoc-2022/day-1/include/gc.c:336
↓ 2 callers
Function
gc_run
skel/include/gc.c:625
↓ 2 callers
Function
gc_run
tests/aoc-2022/day-2/include/gc.c:625
↓ 2 callers
Function
gc_run
tests/aoc-2022/day-1/include/gc.c:625
↓ 2 callers
Function
gc_sweep
skel/include/gc.c:565
↓ 2 callers
Function
gc_sweep
tests/aoc-2022/day-2/include/gc.c:565
↓ 2 callers
Function
gc_sweep
tests/aoc-2022/day-1/include/gc.c:565
↓ 2 callers
Function
gen_fun_postamble
()
src/Gen.py:550
↓ 2 callers
Function
gen_reg_swap
(opd1: Operand, opd2: Operand)
src/Gen.py:52
↓ 2 callers
Function
gen_write_ref
(left_opd: Operand, right_opd: Operand, is_acc: bool = False)
src/Gen.py:267
↓ 2 callers
Function
get_counter
()
src/Def.py:1466
↓ 2 callers
Function
has_indent
(kind: NodeKind)
src/GenStr.py:11
↓ 2 callers
Function
has_indent
(kind: NodeKind)
src/backend/Walker.py:7
↓ 2 callers
Function
has_semicolon
(kind: NodeKind)
src/backend/c/CDef.py:148
↓ 2 callers
Function
hex_digit_to_int
Helper function for sdssplitargs() that converts a hex digit into an * integer from 0 to 15 */
skel/include/sds.c:932
↓ 2 callers
Function
hex_digit_to_int
Helper function for sdssplitargs() that converts a hex digit into an * integer from 0 to 15 */
tests/aoc-2022/day-2/include/sds.c:932
↓ 2 callers
Function
hex_digit_to_int
Helper function for sdssplitargs() that converts a hex digit into an * integer from 0 to 15 */
tests/aoc-2022/day-1/include/sds.c:932
↓ 2 callers
Method
inject_copy
(self, fun_name: str, node: Node)
src/Parser.py:602
↓ 2 callers
Method
inject_destr
(self, full_name: str, sig_name: str, full_arg_names: List[str], arg_types: List[VariableType])
src/Parser.py:1776
← previous
next →
101–200 of 512, ranked by callers