init: SDF3/Statix project as initialized by Spoofax

This commit is contained in:
Glen Whitney 2021-01-30 12:27:10 -08:00
commit 9ecfa63f58
20 changed files with 515 additions and 0 deletions

24
editor/Analysis.esv Normal file
View file

@ -0,0 +1,24 @@
module Analysis
imports
statix/Menus
language
// see README.md for details on how to switch to multi-file analysis
observer : editor-analyze (constraint) // (multifile)
references
reference _ : editor-resolve
hover _ : editor-hover
menus
menu: "Analysis" (openeditor)
action: "Show pre-analyzed AST" = debug-show-pre-analyzed (source)
action: "Show analyzed AST" = debug-show-analyzed

13
editor/Main.esv Normal file
View file

@ -0,0 +1,13 @@
module Main
imports
Syntax
Analysis
language
extensions : fos
provider : target/metaborg/stratego.ctree
provider : target/metaborg/stratego.jar

27
editor/Syntax.esv Normal file
View file

@ -0,0 +1,27 @@
module Syntax
imports
libspoofax/color/default
completion/colorer/fostr-cc-esv
language
table : target/metaborg/sdf.tbl
start symbols : Start
line comment : "//"
block comment : "/*" * "*/"
fences : [ ] ( ) { }
menus
menu: "Syntax" (openeditor)
action: "Format" = editor-format (source)
action: "Show parsed AST" = debug-show-aterm (source)
views
outline view: editor-outline (source)
expand to level: 3