Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ThakeeNathees/pocketlang
/ functions
Functions
635 in github.com/ThakeeNathees/pocketlang
⨍
Functions
635
◇
Types & classes
57
↓ 5 callers
Function
newFiber
src/core/value.c:442
↓ 5 callers
Function
on
(type, fn)
docs/static/codejar/codejar.js:40
↓ 5 callers
Function
parsePrecedence
src/core/compiler.c:2293
↓ 5 callers
Function
pathAbs
src/libs/std_path.c:218
↓ 5 callers
Function
pkClassAddMethod
tests/native/dl/pknative.c:246
↓ 5 callers
Function
pkGetSelf
tests/native/dl/pknative.c:270
↓ 5 callers
Function
pkNewClass
src/core/public.c:256
↓ 5 callers
Function
pkSetSlotHandle
src/core/public.c:822
↓ 5 callers
Function
pkValidateSlotNumber
tests/native/dl/pknative.c:286
↓ 5 callers
Function
utilIsCharHex
src/core/utils.c:44
↓ 5 callers
Function
vmRegisterModule
src/core/vm.c:66
↓ 5 callers
Function
y
(n,r)
docs/static/highlight.js/highlight.min.js:219
↓ 4 callers
Function
M
(e,n)
docs/static/highlight.js/highlight.min.js:276
↓ 4 callers
Function
N
(e="")
docs/static/highlight.js/highlight.min.js:1053
↓ 4 callers
Function
_allocateString
src/core/value.c:289
↓ 4 callers
Function
_compileCall
This function is reused between calls and method calls. if the [call_type] is OP_METHOD_CALL the [method] should refer a string in the module's consta
src/core/compiler.c:1766
↓ 4 callers
Function
_printRed
FIXME: Refactor this. Maybe move to a module, Rgb values are hardcoded ?! Should check stderr/stdout etc.
src/core/debug.c:17
↓ 4 callers
Method
addKeyword
(e,n)
docs/static/highlight.js/highlight.min.js:38
↓ 4 callers
Function
colmsg
(msg, color)
scripts/run_benchmarks.py:260
↓ 4 callers
Function
compilerChangeStack
Change the stack size by the [num], if it's positive, the stack will grow otherwise it'll shrink.
src/core/compiler.c:2424
↓ 4 callers
Function
compilerEnterBlock
Enters inside a block.
src/core/compiler.c:2418
↓ 4 callers
Function
compilerExitBlock
Exits a block.
src/core/compiler.c:2466
↓ 4 callers
Function
eatString
src/core/compiler.c:679
↓ 4 callers
Function
getPkVarTypeName
src/core/value.c:1377
↓ 4 callers
Function
getRule
src/core/compiler.c:1673
↓ 4 callers
Function
initializeModule
src/core/core.c:144
↓ 4 callers
Function
isValuesEqual
src/core/value.c:1444
↓ 4 callers
Function
newModule
src/core/value.c:353
↓ 4 callers
Function
newUpvalue
src/core/value.c:432
↓ 4 callers
Method
openNode
(e)
docs/static/highlight.js/highlight.min.js:20
↓ 4 callers
Function
pkGetAttribute
src/core/public.c:851
↓ 4 callers
Function
pkValidateSlotInteger
src/core/public.c:653
↓ 4 callers
Function
recordHistory
()
docs/static/codejar/codejar.js:305
↓ 4 callers
Function
s
docs/static/highlight.js/highlight.min.js:17
↓ 4 callers
Function
toRepr
src/core/value.c:1803
↓ 4 callers
Function
toString
()
docs/static/codejar/codejar.js:389
↓ 4 callers
Function
utilIsName
Function implementation, see utils.h for description.
src/core/utils.c:34
↓ 4 callers
Function
validateNumeric
Check if [var] is bool/number. If not, it'll set error and return false.
src/core/core.c:71
↓ 4 callers
Function
varEqals
src/core/core.c:1847
↓ 4 callers
Function
varGetAttrib
src/core/core.c:1964
↓ 4 callers
Function
varLesser
src/core/core.c:1861
↓ 4 callers
Function
vmEnsureStackSize
src/core/vm.c:552
↓ 4 callers
Function
vmPrepareFiber
src/core/vm.c:177
↓ 3 callers
Function
E
(e,t)
docs/static/highlight.js/highlight.min.js:247
↓ 3 callers
Function
_collectMethods
Add all the methods recursively to the lits used for generating a list of attributes for the 'dir()' function.
src/core/core.c:262
↓ 3 callers
Function
_mapFindEntry
Find the entry with the [key]. Returns true if found and set [result] to point to the entry, return false otherwise and points [result] to where the e
src/core/value.c:968
↓ 3 callers
Function
_newInstance
src/core/public.c:866
↓ 3 callers
Function
_reportStackFrame
src/core/debug.c:180
↓ 3 callers
Function
_setSlotVector
src/libs/std_term.c:23
↓ 3 callers
Method
addRule
(e,n)
docs/static/highlight.js/highlight.min.js:140
↓ 3 callers
Function
afterCursor
()
docs/static/codejar/codejar.js:178
↓ 3 callers
Function
argparse_usage
cli/argparse.h:457
↓ 3 callers
Function
beforeCursor
()
docs/static/codejar/codejar.js:170
↓ 3 callers
Function
checkMaxConstantsReached
Check if the given [index] is greater than or equal to the maximum constants that a module can contain and report an error.
src/core/compiler.c:657
↓ 3 callers
Method
closeNode
(e)
docs/static/highlight.js/highlight.min.js:24
↓ 3 callers
Function
compileFunction
Compile a function, if it's a literal function after this call a closure of the function will be at the stack top, toplevel functions will be assigned
src/core/compiler.c:2754
↓ 3 callers
Function
compilerAddConstant
Add a literal constant to module literals and return it's index.
src/core/compiler.c:2410
↓ 3 callers
Function
compilerPopLocals
Write instruction to pop all the locals at the current [depth] or higher, but it won't change the stack size of locals count because this function is
src/core/compiler.c:2442
↓ 3 callers
Method
considerAll
()
docs/static/highlight.js/highlight.min.js:140
↓ 3 callers
Function
emitAssignedOp
src/core/compiler.c:2527
↓ 3 callers
Function
emitLoopJump
Jump back to the start of the loop.
src/core/compiler.c:2521
↓ 3 callers
Function
emitPushValue
Emit opcode to push the value of [type] at the [index] in it's array.
src/core/compiler.c:1688
↓ 3 callers
Function
emitStoreGlobal
FIXME: This function is used by the import system, remove this function (and move it to emitStoreName()) after import system refactored. Store the va
src/core/compiler.c:1682
↓ 3 callers
Function
emitStoreValue
Emit opcode to store the stack top value to the named value to the [type] at the [index] in it's array.
src/core/compiler.c:1732
↓ 3 callers
Function
i
(e)
docs/static/highlight.js/highlight.min.js:14
↓ 3 callers
Function
k
(e,n,t={})
docs/static/highlight.js/highlight.min.js:58
↓ 3 callers
Function
markVarBuffer
src/core/value.c:89
↓ 3 callers
Function
matchAssignment
Returns a optional compound assignment.
src/core/compiler.c:1339
↓ 3 callers
Function
matchLine
Match one or more lines and return true if there any.
src/core/compiler.c:1259
↓ 3 callers
Function
moduleAddConstant
src/core/value.c:1234
↓ 3 callers
Function
newClass
src/core/value.c:508
↓ 3 callers
Function
newMethodBind
src/core/value.c:422
↓ 3 callers
Function
newRange
src/core/value.c:345
↓ 3 callers
Function
pkFreeVM
tests/native/dl/pknative.c:202
↓ 3 callers
Function
pkGetSlotString
src/core/public.c:753
↓ 3 callers
Function
pkNewConfiguration
src/core/public.c:95
↓ 3 callers
Function
pkNewInstance
src/core/public.c:885
↓ 3 callers
Function
pkNewModule
tests/native/dl/pknative.c:230
↓ 3 callers
Function
pkNewVM
tests/native/dl/pknative.c:198
↓ 3 callers
Function
pkReleaseHandle
tests/native/dl/pknative.c:226
↓ 3 callers
Function
pkRunString
tests/native/dl/pknative.c:254
↓ 3 callers
Function
pkSetSlotStringFmt
src/core/public.c:814
↓ 3 callers
Function
reportError
Internal error report function for lexing and parsing.
src/core/compiler.c:596
↓ 3 callers
Function
te
docs/static/highlight.js/highlight.min.js:302
↓ 3 callers
Function
tryImportPaths
Try all import paths by appending pocketlang supported extensions to the path (ex: path + ".pk", path + ".dll", path + ".so", path + "/_init.pk", ...
src/libs/std_path.c:92
↓ 3 callers
Function
utilCharHexVal
src/core/utils.c:50
↓ 3 callers
Function
utilHashBits
Function implementation, see utils.h for description.
src/core/utils.c:99
↓ 3 callers
Function
utilPowerOf2Ceil
Function implementation, see utils.h for description.
src/core/utils.c:17
↓ 3 callers
Function
varHashValue
src/core/value.c:955
↓ 3 callers
Function
varIsType
src/core/core.c:1947
↓ 3 callers
Function
vmCallFunction
src/core/vm.c:333
↓ 3 callers
Function
vmNewHandle
src/core/vm.c:15
↓ 3 callers
Function
vmRealloc
src/core/vm.c:25
↓ 3 callers
Function
vmRunFiber
src/core/vm.c:770
↓ 2 callers
Function
G
(e,n,{key:t})
docs/static/highlight.js/highlight.min.js:107
↓ 2 callers
Function
_compileOptionalParanCall
Like lua, we're omitting the paranthese for literals, it'll check for literals that can be passed for no pranthese call (a syntax sugar) and emit the
src/core/compiler.c:1808
↓ 2 callers
Function
_mapInsertEntry
Add the key, value pair to the entries array of the map. Returns true if the entry added for the first time and false for replaced value.
src/core/value.c:1023
↓ 2 callers
Function
_mapResize
Resize the map's size to the given [capacity].
src/core/value.c:1040
↓ 2 callers
Function
_normalizeSliceRange
Given a range. It'll "normalize" the range to slice an object (string or list) set the [start] index [length] and [reversed]. On success it'll return
src/core/core.c:2242
↓ 2 callers
Function
_print_sep
()
scripts/run_benchmarks.py:230
← previous
next →
101–200 of 635, ranked by callers