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
↓ 131 callers
Function
pkSetSlotNumber
src/core/public.c:795
↓ 91 callers
Function
OPCODE
(PUSH_LOCAL_1)
src/core/vm.c:974
↓ 88 callers
Function
pkSetAttribute
src/core/public.c:837
↓ 86 callers
Function
match
Consume the current token if it's expected and lex for the next token and return true otherwise return false.
src/core/compiler.c:1234
↓ 84 callers
Function
newString
Allocate new string using the cstring [text].
src/core/value.h:592
↓ 78 callers
Function
emitOpcode
Emits an instruction and update stack size (variable stack size opcodes should be handled).
src/core/compiler.c:2513
↓ 72 callers
Function
vmPopTempRef
src/core/vm.c:60
↓ 68 callers
Function
vmPushTempRef
src/core/vm.c:53
↓ 45 callers
Function
pkValidateSlotNumber
src/core/public.c:639
↓ 38 callers
Function
skipNewLines
Will skip multiple new lines.
src/core/compiler.c:1283
↓ 34 callers
Function
stringFormat
src/core/value.c:792
↓ 32 callers
Function
m
(...e)
docs/static/highlight.js/highlight.min.js:44
↓ 32 callers
Function
pkValidateSlotString
src/core/public.c:669
↓ 28 callers
Function
markObject
src/core/value.c:67
↓ 28 callers
Function
pkSetRuntimeError
src/core/public.c:569
↓ 27 callers
Function
consume
Consume the the current token and if it's not [expected] emits error log and continue parsing for more error logs.
src/core/compiler.c:1245
↓ 26 callers
Function
newStringLength
src/core/value.c:298
↓ 26 callers
Function
peekChar
Returns the current char of the compiler on.
src/core/compiler.c:807
↓ 26 callers
Function
pkGetSelf
src/core/public.c:581
↓ 24 callers
Function
pkRealloc
src/core/public.c:90
↓ 22 callers
Function
setNextToken
Initialize the next token as the type.
src/core/compiler.c:1012
↓ 20 callers
Function
emitByte
Emit a single byte and return it's index.
src/core/compiler.c:2496
↓ 20 callers
Function
emitShort
Emit 2 bytes argument as big indian. return it's starting index.
src/core/compiler.c:2506
↓ 20 callers
Function
syntaxError
Error caused when parsing. The associated token assumed to be last consumed which is [parser->previous].
src/core/compiler.c:618
↓ 19 callers
Function
compileExpression
Compiles an expression. An expression will result a value on top of the stack.
src/core/compiler.c:3088
↓ 19 callers
Function
eatChar
Advance the compiler by 1 char.
src/core/compiler.c:818
↓ 19 callers
Function
semanticError
src/core/compiler.c:631
↓ 17 callers
Function
newList
src/core/value.c:323
↓ 17 callers
Function
p
(...e)
docs/static/highlight.js/highlight.min.js:44
↓ 16 callers
Function
pkReleaseHandle
src/core/public.c:325
↓ 15 callers
Function
listAppend
src/core/value.h:701
↓ 15 callers
Function
varTypeName
src/core/value.c:1410
↓ 14 callers
Function
makeErrToken
Returns an error token from the current position for reporting error.
src/core/compiler.c:1002
↓ 14 callers
Function
moduleGetStringAt
src/core/value.c:1267
↓ 14 callers
Function
pkCheckArgcRange
src/core/public.c:594
↓ 14 callers
Function
setNextTwoCharToken
If the current char is [c] eat the char and add token two otherwise eat append token one.
src/core/compiler.c:992
↓ 13 callers
Function
peek
Returns current token type without lexing a new token.
src/core/compiler.c:1228
↓ 13 callers
Function
pkSetSlotStringLength
src/core/public.c:807
↓ 13 callers
Function
toBool
src/core/value.c:1812
↓ 12 callers
Function
markValue
src/core/value.c:84
↓ 12 callers
Function
pkReserveSlots
src/core/public.c:721
↓ 12 callers
Function
pkSetSlotBool
src/core/public.c:789
↓ 11 callers
Function
matchChar
If the current char is [c] consume it and advance char by 1 and returns true otherwise returns false.
src/core/compiler.c:984
↓ 11 callers
Function
o
(e,n,t)
docs/static/highlight.js/highlight.min.js:657
↓ 11 callers
Function
patchJump
Update the jump offset.
src/core/compiler.c:2565
↓ 10 callers
Function
d
(e)
docs/static/highlight.js/highlight.min.js:41
↓ 10 callers
Function
g
(e)
docs/static/highlight.js/highlight.min.js:42
↓ 10 callers
Function
hasMethod
src/core/core.c:1567
↓ 10 callers
Function
mapGet
src/core/value.c:1063
↓ 10 callers
Function
pkNewModule
src/core/public.c:229
↓ 10 callers
Function
pkSetRuntimeErrorFmt
src/core/public.c:574
↓ 10 callers
Function
restore
(pos)
docs/static/codejar/codejar.js:125
↓ 10 callers
Function
utilHashString
Function implementation, see utils.h for description.
src/core/utils.c:119
↓ 9 callers
Function
compilerAddVariable
Add a variable and return it's index to the context. Assumes that the variable name is unique and not defined before in the current scope.
src/core/compiler.c:2350
↓ 9 callers
Method
exec
(e)
docs/static/highlight.js/highlight.min.js:131
↓ 9 callers
Function
pkGetArgc
src/core/public.c:589
↓ 9 callers
Function
pkRegisterModule
src/core/public.c:240
↓ 9 callers
Function
pkSetSlotString
src/core/public.c:801
↓ 9 callers
Function
utilIsDigit
Function implementation, see utils.h for description.
src/core/utils.c:39
↓ 9 callers
Function
validateInteger
Check if [var] is 32 bit integer. If not, it'll set error and return false.
src/core/core.c:79
↓ 9 callers
Function
varToString
src/core/core.c:177
↓ 9 callers
Function
vmCallMethod
src/core/vm.c:285
↓ 8 callers
Method
add
(e)
docs/static/highlight.js/highlight.min.js:28
↓ 8 callers
Function
f
(e,{joinWith:n})
docs/static/highlight.js/highlight.min.js:50
↓ 8 callers
Function
newClosure
src/core/value.c:411
↓ 8 callers
Function
preventDefault
(event)
docs/static/codejar/codejar.js:392
↓ 8 callers
Function
save
()
docs/static/codejar/codejar.js:88
↓ 7 callers
Function
K
docs/static/highlight.js/highlight.min.js:104
↓ 7 callers
Function
argparse_error
cli/argparse.h:191
↓ 7 callers
Function
insert
(text)
docs/static/codejar/codejar.js:361
↓ 7 callers
Function
isNumeric
Check if [var] is a numeric value (bool/number) and set [value].
src/core/core.c:43
↓ 7 callers
Function
isObjectHashable
src/core/value.c:1506
↓ 7 callers
Function
lexToken
Lex the next token and set it as the next token.
src/core/compiler.c:1027
↓ 7 callers
Function
moduleAddString
src/core/value.c:1244
↓ 7 callers
Function
moduleSetGlobal
src/core/value.c:1277
↓ 7 callers
Function
newMap
src/core/value.c:336
↓ 7 callers
Function
r
(e,...n)
docs/static/highlight.js/highlight.min.js:16
↓ 7 callers
Function
w
()
docs/static/highlight.js/highlight.min.js:271
↓ 6 callers
Function
H
(e,n)
docs/static/highlight.js/highlight.min.js:105
↓ 6 callers
Function
RGB
(red=None, green=None, blue=None,bg=False)
scripts/run_benchmarks.py:246
↓ 6 callers
Method
addText
(e)
docs/static/highlight.js/highlight.min.js:19
↓ 6 callers
Function
c
()
docs/static/highlight.js/highlight.min.js:186
↓ 6 callers
Function
consumeEndStatement
Consume semi collon, multiple new lines or peek 'end' keyword.
src/core/compiler.c:1308
↓ 6 callers
Function
getClass
src/core/core.c:1539
↓ 6 callers
Method
ignoreMatch
()
docs/static/highlight.js/highlight.min.js:14
↓ 6 callers
Function
mapSet
src/core/value.c:1069
↓ 6 callers
Function
newFunction
src/core/value.c:365
↓ 6 callers
Function
pkSetSlotNumber
tests/native/dl/pknative.c:350
↓ 6 callers
Function
report_error
(msg)
scripts/static_check.py:175
↓ 6 callers
Function
v
(e)
docs/static/highlight.js/highlight.min.js:273
↓ 5 callers
Function
_
(e)
docs/static/highlight.js/highlight.min.js:48
↓ 5 callers
Function
compile
src/core/compiler.c:3386
↓ 5 callers
Function
compileBlockBody
Finish a block body.
src/core/compiler.c:2909
↓ 5 callers
Function
dumpValue
src/core/debug.c:266
↓ 5 callers
Function
getSelection
()
docs/static/codejar/codejar.js:395
↓ 5 callers
Function
getVarType
src/core/value.c:1425
↓ 5 callers
Function
isInteger
Check if [var] is a numeric value (bool/number) and set [value].
src/core/core.c:56
↓ 5 callers
Function
location
(file, line)
scripts/static_check.py:159
↓ 5 callers
Function
moduleGetGlobalIndex
src/core/value.c:1298
↓ 5 callers
Function
n
(e)
docs/static/highlight.js/highlight.min.js:6
next →
1–100 of 635, ranked by callers