Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1# is-reference2 3Utility for determining whether an AST node is a reference.4 5`foo` is a reference in these cases:6 7```js8console.log(foo);9var foo;10function foo() {}11function bar(foo) {}12export { foo as x };13```14 15`foo` is *not* a reference in these cases:16 17```js18var obj = { foo: 1 };19console.log(obj.foo);20export { x as foo };21```22 23In all cases, `foo` is an `Identifier` node, but the two kinds must be treated differently for the purposes of scope analysis etc. (The examples are non-exhaustive.)24 25 26## Installation27 28```bash29npm install is-reference30```31 32 33## Usage34 35Example using [Acorn](https://github.com/ternjs/acorn) and [estree-walker](https://github.com/Rich-Harris/estree-walker):36 37```js38import { parse } from 'acorn';39import { walk } from 'estree-walker';40import is_reference from 'is-reference';41 42const identifiers = [];43const references = [];44 45const ast = parse(`var a = b.c;`);46 47walk(ast, {48 enter(node, parent) {49 if (node.type === 'Identifier') identifiers.push(node);50 if (is_reference(node, parent)) references.push(node);51 }52});53 54identifiers.forEach(node => console.log(node.name)); // a, b, c55references.forEach(node => console.log(node.name)); // a, b56```57 58 59## License60 61MIT62 