diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-12 17:20:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-12 17:20:29 +0300 |
commit | 72665791ad4751128e6df31496683c10b0a6204d (patch) | |
tree | 66c922c0c7679acf5deb39f1acd1854b166ee8e5 | |
parent | 5523103f7f9d0331c65b3c931533519d2d18c838 (diff) | |
download | paranucker-72665791ad4751128e6df31496683c10b0a6204d.tar.gz paranucker-72665791ad4751128e6df31496683c10b0a6204d.tar.bz2 paranucker-72665791ad4751128e6df31496683c10b0a6204d.tar.xz paranucker-72665791ad4751128e6df31496683c10b0a6204d.zip |
In autogenerate script add support for block directory.
-rwxr-xr-x | scripts/addfile.py | 5 |
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" |