Add multi-language logic exploration
This commit is contained in:
parent
9b4258c852
commit
9161889492
18 changed files with 1639 additions and 76 deletions
|
|
@ -126,15 +126,20 @@ anchor node's expected content hash.
|
|||
`LogicProjection` stores control flow separately from the primary architecture graph. It is owned
|
||||
by one function or method node and one source extraction.
|
||||
|
||||
Logic nodes can represent entries, conditions, basic blocks, calls, merges, loops, returns, and
|
||||
raises. Logic edges retain relation, display label, and deterministic ordinal. Adapters may leave
|
||||
Logic nodes can represent entries, conditions, basic blocks, calls, convergence points, loops,
|
||||
returns, and raises. Logic edges retain relation, display label, and deterministic ordinal.
|
||||
Adapters may leave
|
||||
logic empty until they implement a language analyzer.
|
||||
|
||||
This boundary prevents thousands of boolean expressions and basic blocks from polluting Nodes,
|
||||
Flow, Web, ordinary search, or architectural traversal. The Logic tab and `docforge_get_logic`
|
||||
request one function-scoped projection on demand. The built-in Python analyzer covers conditions,
|
||||
short-circuit booleans, loops, `match`, exception paths, returns, and raises. It reports possible
|
||||
static paths; it does not claim runtime branch outcomes.
|
||||
request one function-scoped projection on demand. The built-in analyzers cover Python,
|
||||
JavaScript, and C++. Python uses the standard-library AST. JavaScript and C++ share pinned
|
||||
Tree-sitter infrastructure with thin language-aware control-flow profiles. Parsers run only while
|
||||
extracting a changed source contribution; ordinary graph reads do not load or execute them. A
|
||||
grammar alone supplies syntax, not control-flow meaning, so each new language still needs a small
|
||||
semantic profile for its branch, loop, case, exception, and termination constructs. All analyzers
|
||||
report possible static paths; they do not claim runtime branch outcomes.
|
||||
|
||||
## Full rebuilds
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue