2 Commits

Author SHA1 Message Date
5866acf565 update .gitignore 2021-10-01 13:06:10 +02:00
6acf73a40f add template to generate instruction YAML 2021-10-01 13:05:36 +02:00
2 changed files with 17 additions and 0 deletions

1
.gitignore vendored
View File

@ -31,3 +31,4 @@ language.settings.xml
/*.out /*.out
/dump.json /dump.json
/src-gen/ /src-gen/
/*.yaml

View File

@ -0,0 +1,16 @@
<% def getInstructionGroups() {
def instrGroups = [:]
instructions.each {
def groupName = it['instruction'].eContainer().name
if(!instrGroups.containsKey(groupName)) {
instrGroups[groupName]=[]
}
instrGroups[groupName]+=it;
}
instrGroups
}%><%getInstructionGroups().each{name, instrList -> %>
${name}: <% instrList.findAll{!it.instruction.name.startsWith("__")}.each { %>
- ${it.instruction.name}
encoding: ${it.encoding}
mask: ${it.mask}<%}}%>