Ragex. Analyzers. SCIP. Parser
(Ragex v0.18.2)
View Source
Parses SCIP index JSON (from scip print --json) into Ragex's internal
analysis format.
Zero external dependencies -- uses OTP's :json.decode/1 for parsing
and maps SCIP's document/symbol/occurrence model to Ragex's
%{modules, functions, calls, imports} shape.
SCIP Model -> Ragex Model Mapping
- SCIP
Document-> one or more Ragex modules (grouped by namespace) - SCIP
SymbolInformationwithSuffix.TypeorSuffix.Namespace->:modulenode - SCIP
SymbolInformationwithSuffix.MethodorSuffix.Term->:functionnode - SCIP
Occurrencewith definition role -> defines edge - SCIP
Occurrencewith reference role -> calls edge
Summary
Functions
Parse a SCIP JSON string into Ragex analysis result format.
Parse a SCIP JSON string into a simplified flat list of symbols with their locations. Useful for quick inspection.
Functions
Parse a SCIP JSON string into Ragex analysis result format.
Parameters
json_string-- output ofscip print --json index.scipproject_root-- absolute path to the project root (for file resolution)
Returns
{:ok, analysis_result} matching Ragex.Analyzers.Behaviour.analysis_result()
Parse a SCIP JSON string into a simplified flat list of symbols with their locations. Useful for quick inspection.