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
↓ 2 callers
Function
_toStringInternal
src/core/value.c:1525
↓ 2 callers
Function
_toggleTheme
(enable, disable)
docs/static/main.js:19
↓ 2 callers
Function
addUpvalue
Add the upvalue to the given function and return it's index, if the upvalue already present in the function's upvalue array it'll return it.
src/core/compiler.c:1401
↓ 2 callers
Function
api_typedef
(api_functions)
scripts/generate_native.py:95
↓ 2 callers
Function
argparse_getvalue
cli/argparse.h:204
↓ 2 callers
Function
argparse_short_opt
cli/argparse.h:316
↓ 2 callers
Function
b
(e)
docs/static/highlight.js/highlight.min.js:43
↓ 2 callers
Function
closeUpvalues
Close all the upvalues for the locals including [top] and higher in the stack.
src/core/vm.c:746
↓ 2 callers
Function
clsGetMethod
Returns a method on a class (it'll walk up the inheritance tree to search and if the method not found, it'll return NULL.
src/core/core.c:1551
↓ 2 callers
Method
compile
()
docs/static/highlight.js/highlight.min.js:129
↓ 2 callers
Function
compileImportPath
Parse the module path syntax, emit opcode to load module at that path. and return the module's name token ex: import foo.bar.baz // => "foo/bar/baz"
src/core/compiler.c:2952
↓ 2 callers
Function
compileStatement
Compiles a statement. Assignment could be an assignment statement or a new variable declaration, which will be handled.
src/core/compiler.c:3232
↓ 2 callers
Function
compilerPushFunc
src/core/compiler.c:2476
↓ 2 callers
Function
consumeStartBlock
Match optional "do" or "then" keyword and new lines.
src/core/compiler.c:1317
↓ 2 callers
Function
debounce
(cb, wait)
docs/static/codejar/codejar.js:370
↓ 2 callers
Function
dumpFunctionCode
src/core/debug.c:273
↓ 2 callers
Function
eatNumber
Complete lexing a number literal.
src/core/compiler.c:851
↓ 2 callers
Function
emitFunctionEnd
src/core/compiler.c:2551
↓ 2 callers
Function
error_exit
(msg)
scripts/run_tests.py:137
↓ 2 callers
Function
error_exit
(msg)
scripts/run_benchmarks.py:239
↓ 2 callers
Function
exprLiteral
src/core/compiler.c:1828
↓ 2 callers
Function
files
(path, ext, filter_= lambda file : True)
scripts/amalgamate.py:26
↓ 2 callers
Function
findBuiltinFunction
Find the builtin function name and returns it's index in the builtins array if not found returns -1.
src/core/compiler.c:1362
↓ 2 callers
Function
findLocal
Find the local with the [name] in the given function [func] and return it's index, if not found returns -1.
src/core/compiler.c:1388
↓ 2 callers
Function
findPadding
(text)
docs/static/codejar/codejar.js:377
↓ 2 callers
Function
firefoxNewLineFix
(event)
docs/static/codejar/codejar.js:214
↓ 2 callers
Function
fn_typedefs
(api_functions)
scripts/generate_native.py:88
↓ 2 callers
Function
freeObject
src/core/value.c:1133
↓ 2 callers
Method
getMatcher
(e)
docs/static/highlight.js/highlight.min.js:136
↓ 2 callers
Function
getMethod
src/core/core.c:1580
↓ 2 callers
Function
getObjectTypeName
src/core/value.c:1391
↓ 2 callers
Function
get_pocket_binary
(name, fail)
scripts/run_benchmarks.py:72
↓ 2 callers
Function
isCtrl
(event)
docs/static/codejar/codejar.js:352
↓ 2 callers
Function
isRedo
(event)
docs/static/codejar/codejar.js:358
↓ 2 callers
Function
isUndo
(event)
docs/static/codejar/codejar.js:355
↓ 2 callers
Function
isValuesSame
src/core/value.c:1435
↓ 2 callers
Function
listInsert
src/core/value.c:865
↓ 2 callers
Function
listRemoveAt
src/core/value.c:881
↓ 2 callers
Function
mapClear
src/core/value.c:1083
↓ 2 callers
Function
matchEndStatement
Match semi collon, multiple new lines or peek 'end', 'else', 'elif' keywords.
src/core/compiler.c:1289
↓ 2 callers
Function
newStringVaArgs
src/core/value.c:310
↓ 2 callers
Function
osGetExeFilePath
src/libs/std_os.c:152
↓ 2 callers
Function
parse
(path)
scripts/amalgamate.py:71
↓ 2 callers
Function
patchListSize
Update the size value for OP_PUSH_LIST instruction.
src/core/compiler.c:2574
↓ 2 callers
Function
pathIsExists
src/libs/std_path.c:214
↓ 2 callers
Function
pathIsFile
src/libs/std_path.c:196
↓ 2 callers
Function
pkAddSearchPath
src/core/public.c:213
↓ 2 callers
Function
pkCallMethod
src/core/public.c:1007
↓ 2 callers
Function
pkFreeVM
src/core/public.c:158
↓ 2 callers
Function
pkGetSlotNativeInstance
src/core/public.c:768
↓ 2 callers
Function
pkGetSlotString
tests/native/dl/pknative.c:330
↓ 2 callers
Function
pkGetSlotsCount
src/core/public.c:727
↓ 2 callers
Function
pkImportModule
src/core/public.c:1054
↓ 2 callers
Function
pkMakeNativeAPI
src/libs/gen/nativeapi.h:144
↓ 2 callers
Function
pkModuleAddFunction
tests/native/dl/pknative.c:238
↓ 2 callers
Function
pkModuleAddSource
src/core/public.c:318
↓ 2 callers
Function
pkNewVM
src/core/public.c:119
↓ 2 callers
Function
pkRealloc
tests/native/dl/pknative.c:222
↓ 2 callers
Function
pkRegisterModule
tests/native/dl/pknative.c:234
↓ 2 callers
Function
pkRunString
src/core/public.c:341
↓ 2 callers
Function
pkValidateSlotBool
FIXME: If the user needs just the boolean value of the object, they should use pkGetSlotBool().
src/core/public.c:625
↓ 2 callers
Function
pkValidateSlotInstanceOf
src/core/public.c:696
↓ 2 callers
Function
preConstructSelf
src/core/core.c:1496
↓ 2 callers
Function
prefix_skip
cli/argparse.h:173
↓ 2 callers
Function
print_error
(msg)
scripts/run_tests.py:125
↓ 2 callers
Function
pushCallFrame
The return address for the next call frame (rbp) has to be set to the fiber's ret (fiber->ret == next rbp).
src/core/vm.c:605
↓ 2 callers
Function
q
(e,...n)
docs/static/highlight.js/highlight.min.js:105
↓ 2 callers
Function
setNextValueToken
Initialize the next token as the type and assign the value.
src/core/compiler.c:1021
↓ 2 callers
Function
shouldRecord
(event)
docs/static/codejar/codejar.js:27
↓ 2 callers
Function
stringJoin
src/core/value.c:848
↓ 2 callers
Function
to_abs_paths
(sources)
scripts/static_check.py:60
↓ 2 callers
Function
to_rel_path
(path)
scripts/static_check.py:65
↓ 2 callers
Function
u
(e)
docs/static/highlight.js/highlight.min.js:43
↓ 2 callers
Function
utilDoubleToBits
Function implementation, see utils.h for description.
src/core/utils.c:85
↓ 2 callers
Function
utilHashNumber
Function implementation, see utils.h for description.
src/core/utils.c:113
↓ 2 callers
Function
utilHexDigit
src/core/utils.c:65
↓ 2 callers
Function
varGetSubscript
src/core/core.c:2334
↓ 2 callers
Function
varGreater
src/core/core.c:1853
↓ 2 callers
Function
varSetAttrib
src/core/core.c:2168
↓ 2 callers
Function
visit
(editor, visitor)
docs/static/codejar/codejar.js:337
↓ 2 callers
Function
vmCollectGarbage
src/core/vm.c:82
↓ 1 callers
Function
Ne
(e)
docs/static/highlight.js/highlight.min.js:322
↓ 1 callers
Function
O
(e,{languageName:n})
docs/static/highlight.js/highlight.min.js:274
↓ 1 callers
Function
Q
(e)
docs/static/highlight.js/highlight.min.js:122
↓ 1 callers
Function
U
(e,n,t="keyword")
docs/static/highlight.js/highlight.min.js:99
↓ 1 callers
Function
X
(e)
docs/static/highlight.js/highlight.min.js:169
↓ 1 callers
Function
_cJsonToPocket
TODO: Convert a cJSON object into pocket variable. Note that the depth shouldn't exceed MAX_TEMP_REFERENCE of the PKVM and we should throw error if th
src/libs/std_json.c:21
↓ 1 callers
Function
_callBinaryOpMethod
Calls a binary operator overload method. If the method does not exists it'll return false, otherwise it'll call the method and return true. If any err
src/core/core.c:242
↓ 1 callers
Function
_get_include_path
(line)
scripts/amalgamate.py:58
↓ 1 callers
Function
_hashObject
Return a hash value for the object. Only String and Range objects can be hashable.
src/core/value.c:929
↓ 1 callers
Function
_importDL
src/core/vm.c:358
↓ 1 callers
Function
_importScript
src/core/vm.c:413
↓ 1 callers
Function
_isPathDL
Returns true if the path ends with ".dll" or ".so".
src/core/vm.c:343
↓ 1 callers
Function
_pocketToCJson
src/libs/std_json.c:85
↓ 1 callers
Function
_registerEnums
src/libs/std_term.c:81
↓ 1 callers
Function
_registerSearchPaths
Add the executables path and exe_path + 'libs/' as a search path for the PKVM.
src/libs/std_path.c:419
↓ 1 callers
Function
_sliceList
Slice the list with the [range] and reutrn it. On error it'll set an error and return NULL.
src/core/core.c:2314
↓ 1 callers
Function
_sliceString
Slice the string with the [range] and reutrn it. On error it'll set an error and return NULL.
src/core/core.c:2287
↓ 1 callers
Method
_walk
(e,n)
docs/static/highlight.js/highlight.min.js:33
↓ 1 callers
Method
addRule
(e,n)
docs/static/highlight.js/highlight.min.js:127
← previous
next →
201–300 of 635, ranked by callers