summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/addfile.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/addfile.py b/scripts/addfile.py
index b01a5be..77a4296 100755
--- a/scripts/addfile.py
+++ b/scripts/addfile.py
@@ -55,6 +55,10 @@ if dirName != "":
suffixSize = 4
parserAdditionalCode2 = "\n fillExprOperands(node);\n"
parserBaseInclude = "#include \"parsers/base/expr.h\"\n"
+ elif nodeName[-3:] == "ref":
+ suffixSize = 3
+ parserAdditionalCode2 = "\n fillExprOperands(node);\n"
+ parserBaseInclude = "#include \"parsers/base/expr.h\"\n"
elif nodeName[-4:] == "stmt":
suffixSize = 4
parserBaseInclude = "#include \"parsers/base/stmt.h\"\n"