This commit is contained in:
anil
2020-08-08 10:18:39 +02:00
parent a3e9804ead
commit c626b3981f
12 changed files with 920 additions and 44 deletions
@@ -177,6 +177,7 @@ public abstract class AbstractSrcmlTreeGenerator extends TreeGenerator {
private void fixPos(TreeContext ctx) {
for (ITree t : ctx.getRoot().postOrder()) {
if (!t.isLeaf()) {
if(t.getType() == 0) continue;
//put the keywords as labels
// if(t.getType() == 34 || t.getType() ==37 || t.getType() ==38 || t.getType()==39 || t.getType() == 41 || t.getType()==45 || t.getType() ==55 || t.getType()==14){
// t.setLabel(NodeMap_new.map.get(t.getType())+" " +t.getLabel());
@@ -200,6 +200,7 @@ public class NodeMap_new {
map.put( 197 , "message");
map.put( 199 , "protocol_list");
map.put( 200 , "category");
map.put( 201 , "clause");
//
// map.put(1 , "unit");