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