init: SDF3/Statix project as initialized by Spoofax
This commit is contained in:
commit
9ecfa63f58
20 changed files with 515 additions and 0 deletions
46
trans/analysis.str
Normal file
46
trans/analysis.str
Normal file
|
@ -0,0 +1,46 @@
|
|||
module analysis
|
||||
|
||||
imports
|
||||
|
||||
statixruntime
|
||||
statix/api
|
||||
|
||||
pp
|
||||
injections/-
|
||||
|
||||
libspoofax/term/origin
|
||||
|
||||
rules // Analysis
|
||||
|
||||
// single-file analysis
|
||||
editor-analyze = stx-editor-analyze(pre-analyze, post-analyze|"statics", "programOk")
|
||||
|
||||
// see README.md for details on how to switch to multi-file analysis
|
||||
// multi-file analysis
|
||||
// editor-analyze = stx-editor-analyze(pre-analyze, post-analyze|"statics", "projectOk", "fileOk")
|
||||
|
||||
pre-analyze = origin-track-forced(explicate-injections-fostr-Start)
|
||||
post-analyze = origin-track-forced(implicate-injections-fostr-Start)
|
||||
|
||||
rules // Editor Services
|
||||
|
||||
editor-resolve = stx-editor-resolve
|
||||
|
||||
editor-hover = stx-editor-hover
|
||||
|
||||
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 pre-analyzed abstract syntax ATerm of a selection.
|
||||
debug-show-pre-analyzed: (selected, _, _, path, project-path) -> (filename, result)
|
||||
with filename := <guarantee-extension(|"pre-analyzed.aterm")> path
|
||||
; result := <pre-analyze> 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
|
Loading…
Add table
Add a link
Reference in a new issue