From 7133636b5c307cdfd2d02a744dd6d36d3e98d431 Mon Sep 17 00:00:00 2001 From: dblouin <dominique.blouin@telecom-paristech.fr> Date: Tue, 21 Nov 2017 13:59:56 +0100 Subject: [PATCH] Issue #98: Fixing ZigBee code generator --- .../modelcompiler/CCodeGenConstants.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/main/java/tmltranslator/modelcompiler/CCodeGenConstants.java diff --git a/src/main/java/tmltranslator/modelcompiler/CCodeGenConstants.java b/src/main/java/tmltranslator/modelcompiler/CCodeGenConstants.java new file mode 100644 index 0000000000..7e8ef86e9c --- /dev/null +++ b/src/main/java/tmltranslator/modelcompiler/CCodeGenConstants.java @@ -0,0 +1,20 @@ +package tmltranslator.modelcompiler; + +public interface CCodeGenConstants { + + String CR = "\n"; + String CR2 = "\n\n"; + String TAB = "\t"; + String TAB2 = "\t\t"; + String TAB3 = "\t\t\t"; + String TAB4 = "\t\t\t\t"; + String SP = " "; + String SC = ";"; + + String NATURAL_TYPE = "int"; + String BOOLEAN_TYPE = "bool"; + + String DEFAULT_NUM_VAL = "0"; + String DEFAULT_BOOL_VAL = Boolean.FALSE.toString(); + String USER_TO_DO = "/* USER TO DO */"; +} -- GitLab