{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/analyzers/syntax.analyzer.ts",
          "name": "isTypeLike",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-syntax-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/syntax.analyzer.ts",
            "label": "core/analyzers/syntax.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/syntax.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-syntax-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/syntax.analyzer.ts",
          "name": "wordKind",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-syntax-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/syntax.analyzer.ts",
            "label": "core/analyzers/syntax.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/syntax.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-syntax-analyzer-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "isShout",
      "signature": "const isShout = function isShout(word: string): boolean {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/analyzers/syntax.analyzer.ts",
          "name": "isShout",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-syntax-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/syntax.analyzer.ts",
            "label": "core/analyzers/syntax.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/syntax.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-syntax-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/syntax.analyzer.ts",
          "name": "isTypeLike",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-syntax-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/syntax.analyzer.ts",
            "label": "core/analyzers/syntax.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/syntax.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-syntax-analyzer-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/analyzers/syntax.analyzer.ts",
          "name": "scanToken",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-syntax-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/syntax.analyzer.ts",
            "label": "core/analyzers/syntax.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/syntax.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-syntax-analyzer-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "wordKind",
      "signature": "const wordKind = function wordKind(word: string, language: string): TokenKind {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/analyzers/syntax.analyzer.ts",
          "name": "isShout",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-syntax-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/syntax.analyzer.ts",
            "label": "core/analyzers/syntax.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/syntax.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-syntax-analyzer-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/analyzers/syntax.analyzer.ts",
          "name": "wordKind",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-syntax-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/syntax.analyzer.ts",
            "label": "core/analyzers/syntax.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/syntax.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-syntax-analyzer-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 51,
      "name": "isTypeLike",
      "signature": "const isTypeLike = function isTypeLike(word: string): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/analyzers/syntax.analyzer.ts",
          "name": "scanComment",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-syntax-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/syntax.analyzer.ts",
            "label": "core/analyzers/syntax.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/syntax.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-syntax-analyzer-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "atLineStart",
      "signature": "const atLineStart = function atLineStart(code: string, at: number): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "presentation/renderers/syntax.renderer.ts",
          "name": "renderSyntax",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-syntax-renderer-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/renderers/syntax.renderer.ts",
            "label": "presentation/renderers/syntax.renderer.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/renderers/syntax.renderer.ts.md",
            "ref": "anatomy:file-presentation-renderers-syntax-renderer-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 117,
      "name": "tokenize",
      "signature": "export const tokenize = function tokenize(code: string, language: string): readonly Token[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/analyzers/syntax.analyzer.ts",
          "name": "atLineStart",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-syntax-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/syntax.analyzer.ts",
            "label": "core/analyzers/syntax.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/syntax.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-syntax-analyzer-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 70,
      "name": "scanComment",
      "signature": "const scanComment = function scanComment(code: string, at: number, language: string): Scan | null {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/analyzers/syntax.analyzer.ts",
          "name": "wordKind",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-syntax-analyzer-ts",
            "json": "https://banes-lab.com/json/source/tree/core/analyzers/syntax.analyzer.ts",
            "label": "core/analyzers/syntax.analyzer.ts",
            "markdown": "https://banes-lab.com/source/tree/core/analyzers/syntax.analyzer.ts.md",
            "ref": "anatomy:file-core-analyzers-syntax-analyzer-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 95,
      "name": "scanToken",
      "signature": "const scanToken = function scanToken(code: string, at: number, language: string): Scan {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "MIN_SHOUT",
      "signature": "const MIN_SHOUT = 2;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 21,
      "name": "Scan",
      "signature": "interface Scan {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "lineEnd",
      "signature": "const lineEnd = function lineEnd(code: string, from: number): number {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "runOf",
      "signature": "const runOf = function runOf(code: string, from: number, alphabet: string): number {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "stringEnd",
      "signature": "const stringEnd = function stringEnd(code: string, from: number, quote: string): number {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "head",
      "signature": "const head = word.charAt(0);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 71,
      "name": "marker",
      "signature": "const marker = LINE_COMMENT_BY_LANGUAGE.get(language);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 83,
      "name": "scanNonterminal",
      "signature": "const scanNonterminal = function scanNonterminal(code: string, at: number, language: string): Scan | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 87,
      "name": "close",
      "signature": "const close = code.indexOf(ANGLE_CLOSE, at);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 96,
      "name": "char",
      "signature": "const char = code.charAt(at);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 97,
      "name": "special",
      "signature": "const special = scanComment(code, at, language) ?? scanNonterminal(code, at, language);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 110,
      "name": "end",
      "signature": "const end = runOf(code, at, WORD_CHARS);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 111,
      "name": "word",
      "signature": "const word = code.slice(at, end);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 118,
      "name": "tokens",
      "signature": "const tokens: Token[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 119,
      "name": "at",
      "signature": "let at = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 121,
      "name": "{ at: next, token }",
      "signature": "const { at: next, token } = scanToken(code, at, language);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 122,
      "name": "last",
      "signature": "const last = tokens.at(-1);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-syntax-analyzer-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "syntax.analyzer.ts",
  "path": "core/analyzers/syntax.analyzer.ts",
  "ref": "anatomy:file-core-analyzers-syntax-analyzer-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-analyzers",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-analyzers",
          "label": "core/analyzers",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-analyzers.md",
          "ref": "chapter:/anatomy/tree#folder-core-analyzers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-syntax-renderer-ts",
          "json": "https://banes-lab.com/json/source/tree/presentation/renderers/syntax.renderer.ts",
          "label": "presentation/renderers/syntax.renderer.ts",
          "markdown": "https://banes-lab.com/source/tree/presentation/renderers/syntax.renderer.ts.md",
          "ref": "anatomy:file-presentation-renderers-syntax-renderer-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-analyzers",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-analyzers",
          "label": "core/analyzers",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-analyzers.md",
          "ref": "chapter:/anatomy/tree#folder-core-analyzers"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-presentation-renderers",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-presentation-renderers",
          "label": "presentation/renderers",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-presentation-renderers.md",
          "ref": "chapter:/anatomy/tree#folder-presentation-renderers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "analyzer",
    "subject": "syntax",
    "variant": null
  },
  "stats": {
    "bytes": 4482,
    "callable": 11,
    "definitions": 24,
    "edges": 5,
    "exported": 5,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 3,
      "relay": 2,
      "entry": 2,
      "isolated": 17
    },
    "lines": {
      "blank": 13,
      "code": 118,
      "total": 131
    }
  },
  "summary": "118 lines of code and 24 definitions.",
  "text": "https://banes-lab.com/source/tree/core/analyzers/syntax.analyzer.ts.txt",
  "tree": "tree",
  "siblings": {
    "next": null,
    "previous": {
      "href": "https://banes-lab.com/anatomy/tree#file-core-analyzers-search-analyzer-ts",
      "json": "https://banes-lab.com/json/source/tree/core/analyzers/search.analyzer.ts",
      "label": "core/analyzers/search.analyzer.ts",
      "markdown": "https://banes-lab.com/source/tree/core/analyzers/search.analyzer.ts.md",
      "ref": "anatomy:file-core-analyzers-search-analyzer-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/tree/core/analyzers",
    "label": "core/analyzers",
    "markdown": "https://banes-lab.com/api/source/tree/core/analyzers.md",
    "ref": "api:source/tree/core/analyzers"
  }
}
