Compare commits
2 Commits
2f15d9676e
...
5866acf565
Author | SHA1 | Date | |
---|---|---|---|
5866acf565 | |||
6acf73a40f |
1
.gitignore
vendored
1
.gitignore
vendored
@ -31,3 +31,4 @@ language.settings.xml
|
|||||||
/*.out
|
/*.out
|
||||||
/dump.json
|
/dump.json
|
||||||
/src-gen/
|
/src-gen/
|
||||||
|
/*.yaml
|
||||||
|
16
gen_input/templates/CORENAME_instr.yaml.gtl
Normal file
16
gen_input/templates/CORENAME_instr.yaml.gtl
Normal 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}<%}}%>
|
||||||
|
|
Reference in New Issue
Block a user