summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-12 17:20:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-12 17:20:29 +0300
commit72665791ad4751128e6df31496683c10b0a6204d (patch)
tree66c922c0c7679acf5deb39f1acd1854b166ee8e5 /scripts
parent5523103f7f9d0331c65b3c931533519d2d18c838 (diff)
downloadparanucker-72665791ad4751128e6df31496683c10b0a6204d.tar.gz
paranucker-72665791ad4751128e6df31496683c10b0a6204d.tar.bz2
paranucker-72665791ad4751128e6df31496683c10b0a6204d.tar.xz
paranucker-72665791ad4751128e6df31496683c10b0a6204d.zip
In autogenerate script add support for block directory.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/addfile.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/addfile.py b/scripts/addfile.py
index b79cc6f..97a53db 100755
--- a/scripts/addfile.py
+++ b/scripts/addfile.py
@@ -56,6 +56,11 @@ if dirName != "":
parserAdditionalCode1 = " fillExprLocation(node);\n"
parserAdditionalCode2 = "\n fillExprOperands(node);\n"
parserBaseInclude = "#include \"parsers/base/expr.h\"\n"
+ elif nodeName[-5:] == "block":
+ suffixSize = 5
+ parserAdditionalCode1 = " fillExprLocation(node);\n"
+ parserAdditionalCode2 = "\n fillExprOperands(node);\n"
+ parserBaseInclude = "#include \"parsers/base/expr.h\"\n"
elif nodeName[-3:] == "ref":
suffixSize = 3
parserAdditionalCode2 = "\n fillExprOperands(node);\n"