Pascal/Delphi binding (#987)

* Pascal/Delphi binding

Pascal/Delphi language binding

* update credits
This commit is contained in:
Coldzer0
2018-08-03 14:33:25 +02:00
committed by Nguyen Anh Quynh
parent c7be4a2160
commit 84220d8360
17 changed files with 4864 additions and 0 deletions

View File

@ -88,6 +88,22 @@ template = {
'comment_open': ' //',
'comment_close': '',
},
'pascal': {
'header': "// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT\n\nunit %sConst;\n\ninterface\n\nconst",
'footer': "\nimplementation\nend.",
'line_format': ' UC_%s = %s;\n',
'out_file': os.path.join('pascal', 'unicorn', '%sConst.pas'),
# prefixes for constant filenames of all archs - case sensitive
'arm.h': 'Arm',
'arm64.h': 'Arm64',
'mips.h': 'Mips',
'x86.h': 'X86',
'sparc.h': 'Sparc',
'm68k.h': 'M68k',
'unicorn.h': 'Unicorn',
'comment_open': '//',
'comment_close': '',
},
}
# markup for comments to be added to autogen files