backend.py
changeset 35 5414b157613a
parent 32 2b7b48758eaa
equal deleted inserted replaced
34:d9eaf22f13ea 35:5414b157613a
     1 # 2.6.0 backend
     1 # 2.6.1 backend
     2 
     2 
     3 # written by VB.
     3 # written by VB.
     4 
     4 
     5 import re, codecs
     5 import re, codecs
     6 import fileinput
     6 import fileinput
   631                         raise SyntaxError("in " + u(line) + ": syntax error in executing command: " + cmd.strip())
   631                         raise SyntaxError("in " + u(line) + ": syntax error in executing command: " + cmd.strip())
   632             else:
   632             else:
   633                 result += codegen(Symbol('lineQuote', '| ' + l[space:]))
   633                 result += codegen(Symbol('lineQuote', '| ' + l[space:]))
   634         return code(result)
   634         return code(result)
   635 
   635 
   636     elif ctype == "textsection":
   636     elif ctype == "textsectionu":
   637         result = ''
   637         result = ''
   638         ll = obj[1].splitlines()
   638         ll = obj[1].splitlines()
   639         space = len(ll[-1]) - 2
   639         space = len(ll[-1]) - 2
   640         for l in ll[1:-1]:
   640         for l in ll[1:-1]:
   641             m = re.match(bqq, l)
   641             m = re.match(bqq, l)