From 1ef39e828479f0d82753f3912b7c5d85e49d708c Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Thu, 20 Jul 2017 15:43:38 +0200 Subject: Working on the "internal_process.py" translation. I think I've found some not-too-ugly solution. --- ast-to-instr/src/IDs.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ast-to-instr/src/IDs.java') diff --git a/ast-to-instr/src/IDs.java b/ast-to-instr/src/IDs.java index e3b9db4..00c0f49 100644 --- a/ast-to-instr/src/IDs.java +++ b/ast-to-instr/src/IDs.java @@ -35,6 +35,12 @@ public class IDs FROM_XML.put(xml_id, result); } + else if ((result.type == null) && (type != null)) + { + /* This allows us to get an ID from a simple reference. */ + /* TODO: Don't forget to report any (type == null) at the end. */ + result.type = type; + } return result; } @@ -54,8 +60,8 @@ public class IDs } /** Non-Static *************************************************************/ - private final String type; private final int value; + private String type; private IDs (final String type) { -- cgit v1.2.3-70-g09d2