spielwiese
Last change
on this file since 09a7ea0 was
09a7ea0,
checked in by Michael Brickenstein <bricken@…>, 18 years ago
|
*bricken: some work
git-svn-id: file:///usr/local/Singular/svn/trunk@8734 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
504 bytes
|
Line | |
---|
1 | import sys |
---|
2 | sys.path.insert(0,"/Users/michael/sing3/modules/openmathserver") |
---|
3 | import CD.gametheory as gametheory |
---|
4 | import CAS.kuchenessen as kuchenessen |
---|
5 | |
---|
6 | kuchenessen.install_kuchenessen_plugin() |
---|
7 | |
---|
8 | from context import Context |
---|
9 | from omxmlreader import * |
---|
10 | import sys |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | root=readStream(sys.stdin) |
---|
16 | builder=OMFromXMLBuilder() |
---|
17 | context=Context() |
---|
18 | |
---|
19 | context.addCDImplementation(gametheory.implementation) |
---|
20 | doc=builder.build(root) |
---|
21 | |
---|
22 | doc=context.evaluate(doc) |
---|
23 | |
---|
24 | output=context.XMLEncodeObject(doc) |
---|
25 | |
---|
26 | sys.stdout.write(output) |
---|
27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.