|Computer Algebra Language [message #900118]
||Sat, 04 August 2012 08:09
| Martin Baker
Registered: July 2009
I am new to this forum and to Xtext (I'm impressed so far). I am getting a bit stuck, not on a specific technical issue, but more generally I would like some advise about the best way to take my application forward.
My application is an open source program which allows a computer algebra language to be edited and I would like to extend this so that it could compile or interpret the code. It is explained further here:
The full code so far is here:
At the moment the code edits an existing library of mathematics code from a program called Axiom (actually a fork of this called FriCAS) these files have the extension SPAD. I have therefore written a grammar to try to parse this existing file format, this is a very large code base of mathematical code and I would not want to attempt to rewrite this code library in a different language by hand. Most, but not all, these files now parse using my grammar. However this file format is very messy and not very precisely defined, so it is difficult to reverse engineer it.
I am therefore thinking of having a second language based on Xbase (I have already started on this called euclid in code above) which would be much more regular and easier to work with. Then I was thinking of having so model-to-model translation code to transfer between these two models. Do you think this would be a workable approach? If so, which model-to-model framework would work best with Xtext?
I would appreciate any ideas on the best way to take this forward.
Powered by FUDForum
. Page generated in 0.01886 seconds