MCPcopy Create free account

hub / github.com/ArhanChaudhary/NAND / functions

Functions253 in github.com/ArhanChaudhary/NAND

↓ 151 callersFunctionnbit16
(n: u16, i: u8)
src/core/builtins/utils/bit_manipulation.rs:1
↓ 71 callersFunctionnot
(a: bool)
src/core/gates.rs:4
↓ 57 callersMethodtoken
()
src/compiler/tokenizer.ts:269
↓ 51 callersMethodassertToken
( expectedToken: string | TokenType | (string | TokenType)[] )
src/compiler/engine.ts:179
↓ 29 callersMethodsyntaxError
( expectedToken: null | string | TokenType | (string | TokenType)[], info?: string, lineIndex?: nu
src/compiler/tokenizer.ts:71
↓ 27 callersFunctionNAND
(a: bool, b: bool)
src/core/builtins/hardware.rs:14
↓ 27 callersMethodadvance
()
src/compiler/tokenizer.ts:160
↓ 27 callersFunctionand
(a: bool, b: bool)
src/core/gates.rs:8
↓ 27 callersMethodwritePush
(segment: string, index: number | string)
src/compiler/vmwriter.ts:15
↓ 19 callersFunctionor
(a: bool, b: bool)
src/core/gates.rs:12
↓ 18 callersMethoddrawRectangle
(x1, y1, x2, y2)
src/example-programs/GeneticAlgorithm/util.js:134
↓ 17 callersMethodsetColor
(b)
src/example-programs/GeneticAlgorithm/util.js:140
↓ 17 callersMethodwrite
(out: string)
src/compiler/vmwriter.ts:7
↓ 16 callersFunctionmux
(a: bool, b: bool, sel: bool)
src/core/gates.rs:16
↓ 16 callersFunctionplacebit16
(b: bool, i: u8)
src/core/builtins/utils/bit_manipulation.rs:5
↓ 14 callersFunctionfull_adder
(a: bool, b: bool, c: bool)
src/core/arithmetic.rs:19
↓ 14 callersMethodindexOf
(name: string)
src/compiler/symboltable.ts:75
↓ 13 callersMethodwrite
(out: string[])
src/vm/codewriter.ts:14
↓ 12 callersFunctionmux16
(a: u16, b: u16, sel: bool)
src/core/gates.rs:62
↓ 11 callersMethodwriteArithmetic
(command: SymbolToken, sub = true)
src/compiler/vmwriter.ts:49
↓ 10 callersMethodaddEntry
(symbol: string, address: number)
src/assembler/symboltable.ts:4
↓ 10 callersMethodcompileExpression
()
src/compiler/engine.ts:733
↓ 10 callersMethodkeyPressed
()
src/example-programs/GeneticAlgorithm/util.js:166
↓ 10 callersMethodwritePop
(segment: string, index: number)
src/compiler/vmwriter.ts:19
↓ 9 callersMethodadd
(a, b)
src/example-programs/GeneticAlgorithm/util.js:81
↓ 9 callersMethodlineIndex
()
src/compiler/tokenizer.ts:283
↓ 9 callersMethodtryWritePrecomputedConstant
( operation: (a: number, b: number) => number )
src/compiler/vmwriter.ts:23
↓ 9 callersMethodvalidate
(callee, argumentsKwd)
src/example-programs/GeneticAlgorithm/util.js:58
↓ 8 callersMethodarg1
()
src/vm/parser.ts:50
↓ 8 callersMethodfloodIndex
(i, leftIndex, rightIndex)
src/example-programs/GeneticAlgorithm/main.js:564
↓ 8 callersMethodgetGridIndex
(posX, posY)
src/example-programs/GeneticAlgorithm/main.js:710
↓ 8 callersMethodreferenceError
( message: string, line?: string, lineNumber?: number, lineIndex?: number )
src/compiler/tokenizer.ts:101
↓ 8 callersMethodwriteLabel
(label: string)
src/compiler/vmwriter.ts:158
↓ 7 callersMethodgetBrain
()
src/example-programs/GeneticAlgorithm/dot.js:89
↓ 7 callersMethodgetStep
()
src/example-programs/GeneticAlgorithm/brain.js:57
↓ 6 callersMethoddefine
(type: string, kind: string)
src/compiler/engine.ts:149
↓ 6 callersMethodfloodIndexOutOfBounds
(originIndex, newIndex)
src/example-programs/GeneticAlgorithm/main.js:633
↓ 5 callersMethoddrawObstacle
(i)
src/example-programs/GeneticAlgorithm/main.js:659
↓ 5 callersMethodline
()
src/compiler/tokenizer.ts:275
↓ 5 callersMethodlineNumber
()
src/compiler/tokenizer.ts:279
↓ 5 callersMethodtoString
()
src/compiler/exceptions.ts:171
↓ 5 callersMethodtokenType
()
src/compiler/tokenizer.ts:263
↓ 5 callersMethodwriteCall
(name: string, nArgs: number)
src/compiler/vmwriter.ts:170
↓ 4 callersMethodarg2
()
src/vm/parser.ts:54
↓ 4 callersMethodcompileStatement
()
src/compiler/engine.ts:437
↓ 4 callersMethodcompileStatements
()
src/compiler/engine.ts:433
↓ 4 callersFunctioncomputer
(reset: bool)
src/core/architecture.rs:87
↓ 4 callersFunctionexpectedTokenToString
(tokenTypeOrString: string | TokenType)
src/compiler/exceptions.ts:30
↓ 4 callersMethodgetDirections
()
src/example-programs/GeneticAlgorithm/brain.js:49
↓ 4 callersMethodinit
()
src/example-programs/GeneticAlgorithm/main.js:53
↓ 4 callersMethodinstantiate
()
src/example-programs/GeneticAlgorithm/dot.js:64
↓ 4 callersFunctionkeyboard
(in_: u16, load: bool)
src/core/builtins/hardware.rs:63
↓ 4 callersMethodkindOf
(name: string)
src/compiler/symboltable.ts:63
↓ 4 callersMethodnameError
( expectedToken: string, message: string, lineIndex?: number )
src/compiler/tokenizer.ts:86
↓ 4 callersFunctionreset
()
src/core/architecture.rs:103
↓ 4 callersFunctionsbin16
(x)
src/os/helpers/pack_output_raster.py:5
↓ 4 callersMethodsetInitialDotOrGoalPosition
(setInitialDot)
src/example-programs/GeneticAlgorithm/main.js:169
↓ 4 callersFunctiontokenTypeToString
(tokenType: TokenType)
src/compiler/exceptions.ts:13
↓ 4 callersMethoduseInternalSubroutineCall
( subroutineClass: string, subroutineName: string )
src/compiler/engine.ts:118
↓ 4 callersMethodvalidateVar
( token: string, line?: string, lineNumber?: number, lineIndex?: number )
src/compiler/engine.ts:156
↓ 4 callersFunctionword16_16
( a: bool, b: bool, c: bool, d: bool, e: bool, f: bool, g: bool, h: bool,
src/core/builtins/utils/bit_manipulation.rs:10
↓ 4 callersMethodwriteGoto
(label: string)
src/compiler/vmwriter.ts:162
↓ 3 callersFunctiona_register
(in_: u16, load: bool)
src/core/builtins/memory.rs:30
↓ 3 callersMethodcleanup
()
src/compiler/engine.ts:945
↓ 3 callersMethodclearScreen
()
src/example-programs/GeneticAlgorithm/util.js:162
↓ 3 callersMethodcompileArrayAccess
()
src/compiler/engine.ts:929
↓ 3 callersMethodconfig
(brainSize, obstacles)
src/example-programs/GeneticAlgorithm/dot.js:38
↓ 3 callersMethodcount
(kind: string)
src/compiler/symboltable.ts:49
↓ 3 callersFunctiond_register
(in_: u16, load: bool)
src/core/builtins/memory.rs:18
↓ 3 callersMethoddrawGoal
()
src/example-programs/GeneticAlgorithm/main.js:642
↓ 3 callersMethoddrawObstacles
()
src/example-programs/GeneticAlgorithm/main.js:651
↓ 3 callersFunctionemit
()
src/core/builtins/kernel_worker/hardware_info.rs:109
↓ 3 callersMethodgetSymbol
(name: string)
src/compiler/symboltable.ts:53
↓ 3 callersMethodisNumber
(char: string)
src/compiler/tokenizer.ts:120
↓ 3 callersFunctionmemory
address[14] == 0 means select RAM address[13] == 0 means select Screen address[13] == 1 and address[14] == 1 means select Keyboard
src/core/architecture.rs:64
↓ 3 callersMethodneg
(n)
src/example-programs/GeneticAlgorithm/util.js:71
↓ 3 callersFunctionnot16
(a: u16)
src/core/gates.rs:20
↓ 3 callersFunctionpost_worker_message
(rust: impl Serialize)
src/core/builtins/utils/js_api.rs:7
↓ 3 callersMethodrandom
()
src/example-programs/GeneticAlgorithm/util.js:152
↓ 3 callersFunctionrender
I've tried out two separate algorithms to render the screen; here's a benchmark between the two algorithms for my future reference. The current algor
src/core/builtins/hardware.rs:123
↓ 3 callersFunctionticktock
()
src/core/architecture.rs:96
↓ 3 callersFunctiontry_stop_emitting
()
src/core/builtins/kernel_worker/hardware_info.rs:95
↓ 3 callersFunctiontry_stop_rendering
()
src/core/builtins/kernel_worker/screen.rs:45
↓ 2 callersFunctionadd16
(a: u16, b: u16)
src/core/arithmetic.rs:29
↓ 2 callersMethodadvance
()
src/assembler/parser.ts:12
↓ 2 callersMethodcommandType
()
src/assembler/parser.ts:24
↓ 2 callersMethodcompileExpressionList
()
src/compiler/engine.ts:558
↓ 2 callersMethodcompileSubroutineCall
( prevToken: string, line: string, lineNumber: number, lineIndex: number )
src/compiler/engine.ts:490
↓ 2 callersMethodcompileTerm
()
src/compiler/engine.ts:787
↓ 2 callersFunctionemit_default
()
src/core/builtins/kernel_worker/hardware_info.rs:102
↓ 2 callersMethodisLetter
(char: string)
src/compiler/tokenizer.ts:116
↓ 2 callersFunctionload_rom
(machine_code: Vec<u16>)
src/core/builtins/hardware.rs:51
↓ 2 callersMethodparsed_machine_code
(&self)
src/core/builtins/kernel_worker.rs:204
↓ 2 callersMethodprecomputeFitnesses
()
src/example-programs/GeneticAlgorithm/main.js:472
↓ 2 callersMethodrefreshDisplay
()
src/example-programs/GeneticAlgorithm/main.js:690
↓ 2 callersFunctionrequest_animation_frame
(callback: &Function)
src/core/builtins/utils/js_api.rs:33
↓ 2 callersMethodresetMinStep
()
src/example-programs/GeneticAlgorithm/dot.js:54
↓ 2 callersFunctionreset_clock_speed
()
src/core/builtins/kernel_worker/hardware_info.rs:88
↓ 2 callersMethodsetGoalPosition
(goalX, goalY)
src/example-programs/GeneticAlgorithm/dot.js:49
↓ 2 callersMethodsetInitialPosition
(initialX, initialY)
src/example-programs/GeneticAlgorithm/dot.js:44
next →1–100 of 253, ranked by callers