Changeset aeb6d3 in git


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
Location:
modules/openmathserver
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • modules/openmathserver/arith1.py

    r01cd17f raeb6d3  
    55from omexceptions import *
    66
    7 content=OMcd("arith1")
    8 implementation=OMcdImplementation(content)
     7content=OMCD("arith1")
     8implementation=OMCDImplementation(content)
    99
    1010plussym=OMSymbol("plus",content)
  • modules/openmathserver/binding.py

    r01cd17f raeb6d3  
    44from itertools import izip
    55from copy import copy
    6 cdFns1=OMcd("fns1")
     6cdFns1=OMCD("fns1")
    77lambdasym=OMSymbol("lambda",cdFns1)
    88
  • modules/openmathserver/omxmlreader.py

    r01cd17f raeb6d3  
    7070        if (node.nodeName=="OMA"):
    7171            children=[self.buildFromNode(c) for c in node.childNodes]
    72             erg= OMapplication(children[0],children[1:])
     72            erg= OMApply(children[0],children[1:])
    7373        if (node.nodeName=="OMBIND"):
    7474            children=[self.buildFromNode(c) for c in node.childNodes]
  • 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.