ginsh_op_help.py (ginac-1.7.11.tar.bz2) | : | ginsh_op_help.py (ginac-1.8.0.tar.bz2) | ||
---|---|---|---|---|
#!/usr/bin/env python3 | ||||
# encoding: utf-8 | # encoding: utf-8 | |||
# Convert help for ginsh operators from man page to C source | # Convert help for ginsh operators from man page to C source | |||
import sys, re, optparse | import sys, re, optparse | |||
rxStart = re.compile('^.*GINSH_OP_HELP_START$') | rxStart = re.compile('^.*GINSH_OP_HELP_START$') | |||
rxEnd = re.compile('^.*GINSH_OP_HELP_END$') | rxEnd = re.compile('^.*GINSH_OP_HELP_END$') | |||
fcnRx = re.compile('^[.]B\s+') | fcnRx = re.compile('^[.]B\s+') | |||
minusRx = re.compile('\\\\[-]') | minusRx = re.compile('\\\\[-]') | |||
codeFmt = 'insert_help("operators", "%s\\t" "%s");\n' | codeFmt = 'insert_help("operators", "%s\\t" "%s");\n' | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |