parsifal-47 / sisal-js

Javascript interpreter for sisal
BSD 2-Clause "Simplified" License
3 stars 0 forks source link

toXML is not a function error #22

Open datsis opened 7 years ago

datsis commented 7 years ago

Hash: 0c979a907ab8fa6b37dd91574d529819f09d0a77

Source Code:

function Fib( M : integer returns integer )
  if M < 2 then
    M
  else
    Fib(M - 1) + Fib(M - 2)
  end if
end function

Error: Uncaught TypeError: this.nodes[i].toXML is not a functionnode.complex.toXML @ ir.nodes.js:64node.complex.toXML @ ir.nodes.js:64toGraphML @ ir.nodes.js:315trn @ example.html:31onclick @ example.html:98

parsifal-47 commented 7 years ago

no longer the case, program is translated to sisal-is: https://github.com/parsifal-47/sisal-is/blob/master/examples/gd/example4.sis

GraphML generated: https://travis-ci.org/parsifal-47/sisal-is/jobs/181082468