Ignore:
Timestamp:
Jun 15, 2005, 1:55:14 PM (19 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
b1b9c0df208edd2e29beb3a44d02c10061ac160b
Parents:
01cd17fd67cfda8867350bb5007624dde10be224
Message:
*bricken: refactoring


git-svn-id: file:///usr/local/Singular/svn/trunk@8372 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/openmathserver/xmlencodetest.py

    r01cd17f raeb6d3  
    1212x=v
    1313y=OMVar("y")
    14 a=OMapplication(OMSymbol("plus",arith1.content),[x,y,i])
     14a=OMApply(OMSymbol("plus",arith1.content),[x,y,i])
    1515print a.XMLencode(context)
    1616print context.XMLEncodeObject(context.evaluate(a))
    17 a1=OMapplication(OMSymbol("plus",arith1.content),[OMint(1),OMint(2)])
    18 a2=OMapplication(OMSymbol("plus",arith1.content),[a1,OMint(2)])
    19 a3=OMapplication(OMSymbol("plus",arith1.content),[a2,x])
     17a1=OMApply(OMSymbol("plus",arith1.content),[OMint(1),OMint(2)])
     18a2=OMApply(OMSymbol("plus",arith1.content),[a1,OMint(2)])
     19a3=OMApply(OMSymbol("plus",arith1.content),[a2,x])
    2020context.addCDImplementation(arith1.implementation)
    2121print "a3", context.XMLEncodeObject(context.evaluate(a3))
     
    2525f=OMfloat(1.23434)
    2626print context.XMLEncodeObject(f)
    27 #print v.XMLattributes
     27#print v.XMLAttributes
    2828
Note: See TracChangeset for help on using the changeset viewer.