diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-13 13:42:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-13 13:42:39 +0300 |
commit | 722672fa932e5ec3d4ef881df4b4ea19ec2933c0 (patch) | |
tree | 402e2f81dd92ccd26692a62c0d10206b834eb905 /scripts | |
parent | 07a8133bc73556e5b61309866182ff594e57a408 (diff) | |
download | paranucker-722672fa932e5ec3d4ef881df4b4ea19ec2933c0.tar.gz paranucker-722672fa932e5ec3d4ef881df4b4ea19ec2933c0.tar.bz2 paranucker-722672fa932e5ec3d4ef881df4b4ea19ec2933c0.tar.xz paranucker-722672fa932e5ec3d4ef881df4b4ea19ec2933c0.zip |
Add support for ref directory into autogeneration script.
Diffstat (limited to 'scripts')
-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 97a53db..c9bd1c8 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[-3:] == "ref": + suffixSize = 3 + parserAdditionalCode1 = " fillRefLocation(node);\n" + parserAdditionalCode2 = "\n fillRefOperands(node);\n" + parserBaseInclude = "#include \"parsers/base/ref.h\"\n" elif nodeName[-5:] == "block": suffixSize = 5 parserAdditionalCode1 = " fillExprLocation(node);\n" |