init: Spoofax language project as generated
This commit is contained in:
commit
79b9392173
20 changed files with 452 additions and 0 deletions
10
editor/Analysis.esv
Normal file
10
editor/Analysis.esv
Normal file
|
@ -0,0 +1,10 @@
|
|||
module Analysis
|
||||
|
||||
imports
|
||||
|
||||
nabl2/Menus
|
||||
nabl2/References
|
||||
|
||||
language
|
||||
|
||||
observer : editor-analyze (constraint)
|
13
editor/Main.esv
Normal file
13
editor/Main.esv
Normal file
|
@ -0,0 +1,13 @@
|
|||
module Main
|
||||
|
||||
imports
|
||||
|
||||
Syntax
|
||||
Analysis
|
||||
|
||||
language
|
||||
|
||||
extensions : spl
|
||||
|
||||
provider : target/metaborg/stratego.ctree
|
||||
provider : target/metaborg/stratego.jar
|
27
editor/Syntax.esv
Normal file
27
editor/Syntax.esv
Normal file
|
@ -0,0 +1,27 @@
|
|||
module Syntax
|
||||
|
||||
imports
|
||||
|
||||
libspoofax/color/default
|
||||
completion/colorer/Spoofax-Propositional-Language-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
|
Loading…
Add table
Add a link
Reference in a new issue