-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from coolya/release
Release
- Loading branch information
Showing
15 changed files
with
1,099 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project version="4"> | ||
<component name="VcsDirectoryMappings"> | ||
<mapping directory="$PROJECT_DIR$" vcs="Git" /> | ||
</component> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# MPS Generator Editors | ||
|
||
[![build status](https://gitlab.com/coolya/mps-generator-editors/badges/master/pipeline.svg)](https://gitlab.com/coolya/mps-generator-editors/commits/master) | ||
|
||
This projects aims to provide a set of editors for the MPS generator language that allow easier readability of the code | ||
by showing certain aspects that are usually hidden in the inspects in the main editor. | ||
|
||
|
||
![comparison](docs/generator_comparison.jpg) | ||
|
||
## State | ||
Currently this is more less a quick hack to see if it technically works. The editor experience is pretty bad at the | ||
moment. Especially when writing new generators while using the normal intentions to create the required macros. I would | ||
currently consider this more or less a read only view on the generator. You can change existing values but if you hit | ||
`return` or `backspace` at the wrong location the editor will behave extremely strange. | ||
|
||
## Installation | ||
Head over to the release page and pick the latest release. If you are already using the the mps-extensions or a recent | ||
version of the mbeddr platform then download the zip file without `with-dependencies` otherwise download the one with | ||
the `with-dependencies` suffix. | ||
|
||
To make the plugin available, extract the zip file to a location of your choice and the point a global library in MPS to | ||
it. `File -> Settings -> Build, Execution, Deployment -> Global Libraries`. | ||
|
||
![global lib](docs/global_lib.png) | ||
|
||
## How To | ||
Using this plugin is simple: click on the `View` menu and the select `Simplified Generator Editors`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### New in 0.1 | ||
* Initial release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class ReleaseNotes { | ||
static String getReleaseNotes(File file) { | ||
|
||
Closure isHeader = {it.startsWith("##")} | ||
|
||
List<String> content = file | ||
.readLines() | ||
.each { it.trim().replaceFirst("\\*", "")} | ||
.findAll {!it.empty} | ||
|
||
|
||
for (int i = 0; i < content.size(); i++) { | ||
String it = content.get(i) | ||
if (isHeader(it)) { | ||
def rest = content.subList(i + 1, content.size) | ||
def notes = rest.takeWhile {!isHeader(it)} | ||
notes.add(0, it) | ||
return notes.join("\r\n") | ||
} | ||
} | ||
return "" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.