6.10.10.2.13. Utilities

6.10.10.2.13. Utilities

Python is announced by a single @. If the line ends in a : (or some others) the script continues to the first line with a non-space in column 1. The first space is remove from each continuation line.

Tcl is announced by a single !. If the line ends in {, or with a \, then the script is continued as for Python.

In both cases, the head line can have spaces or a # initiated comment afterwards and still be detected: for Tcl, neither is permitted after a slosh and will generate a Tcl error.

Start python section to interscript/frames/inputf.py[17]
   409: #line 646 "input_frame.ipk"
   410: # regexp's for the main functions
   411: 
   412:   def make_parse_tab(self, pywarn = None):
   413:     res = []
   414:     if pywarn:
   415:       res = res + [
   416:         ['^'+pywarn+'('+pywarn+')(.*)$',self.do_quote_at],
   417:         ['^'+pywarn+'(.*[-+*/%:,\([{]) *(#.*)?$', self.do_exec_suite],
   418:         ['^'+pywarn+'(.*)$',self.do_exec_line]
   419:         ]
   420: 
   421: 
   422:     res = res + [
   423:       ['^(.*)$',self.do_web]
   424:       ]
   425:     return res
   426: 
End python section to interscript/frames/inputf.py[17]