source: git/modules/openmath/test_read.py @ 547474

fieker-DuValspielwiese
Last change on this file since 547474 was 0d4df5, checked in by Michael Brickenstein <bricken@…>, 18 years ago
*bricken: faster, simpler, yeah git-svn-id: file:///usr/local/Singular/svn/trunk@9004 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 387 bytes
Line 
1import lxmlencoder
2import lxmldecoder
3import lxml.etree as et
4import sys
5from cd.arith1 import implementation as arith1
6from context import Context
7
8tree=et.parse("bindingbsp")
9inp= lxmldecoder.decode(tree)
10h=lxmlencoder.encode(inp)
11print h.__class__
12h.write(open("hallo", "w"))
13c=Context()
14c.addCDImplementation(arith1)
15lxmlencoder.encode(c.evaluate(inp)).write(open("hallo.eval", "w"))
Note: See TracBrowser for help on using the repository browser.