2020-12-15 08:24:59 +00:00
|
|
|
module analysis
|
|
|
|
|
|
|
|
imports
|
|
|
|
|
|
|
|
nabl2/api
|
|
|
|
nabl2/runtime
|
2021-01-16 23:11:47 +00:00
|
|
|
nabl2/shared/-
|
2020-12-15 08:24:59 +00:00
|
|
|
|
|
|
|
statics
|
|
|
|
|
|
|
|
pp
|
|
|
|
|
|
|
|
rules // Analysis
|
|
|
|
|
2021-01-16 23:11:47 +00:00
|
|
|
// editor-analyze = nabl2-analyze(id)
|
|
|
|
strip-indices : AnalysisResult([(r,Full(y,a,l,m,n))]) -> AnalysisResult([(r,Full(<nabl2--erase-ast-indices>y,a,l,m,n))])
|
|
|
|
editor-analyze = nabl2-analyze(id); strip-indices
|
2020-12-15 08:24:59 +00:00
|
|
|
|
|
|
|
rules // Debugging
|
|
|
|
|
|
|
|
// Prints the abstract syntax ATerm of a selection.
|
|
|
|
debug-show-aterm: (selected, _, _, path, project-path) -> (filename, result)
|
|
|
|
with filename := <guarantee-extension(|"aterm")> path
|
|
|
|
; result := selected
|
|
|
|
|
|
|
|
// Prints the analyzed annotated abstract syntax ATerm of a selection.
|
|
|
|
debug-show-analyzed: (selected, _, _, path, project-path) -> (filename, result)
|
|
|
|
with filename := <guarantee-extension(|"analyzed.aterm")> path
|
|
|
|
; result := selected
|