Peter,
On 09/11/14 19:55, Peter Broadbery wrote:
> I've updated the eclipse plugin for aldor to include a few new features:
Thanks, I'll give it a try.
> There's a bit more to do with creating a mechanism for building
> libraries and unit tests..
Will these unit tests include syntax validation for Aldor? If so can I
include them into my tests here:
https://github.com/martinbaker/euclideanspace/blob/master/com.euclideanspace.aldor.tests/src/com/euclideanspace/aldor/tests/ParserTests.xtend
> Martin - would it be possible to build the euclideanspace aldor bits into this?
I don't see why not in principle. As far as I can see you have used the
Eclipse wizard to create a default (XML) editor here:
https://github.com/pbroadbery/aldor-eclipse/tree/master/aldor.text/src/main/aldor/text/editors
Hopefully we could replace this editor with the one created by Xtext. I
suspect its possible there might be a few overlaps/conflicts in the code
to sort out after that.
At the moment I am working out the best way to customise the Xtext
Lexer+Parser to do macros/pile-mode/semicolon-insertion/etc and to do
this I am delving into the internal workings of Xtext which is taking
all my time that I have on the project at present. (It is possible that
I may find a show-stopper which prevents me from doing these things but
I am hopeful at the moment).
After that I need to:
* Sort out some remaining aspects of the grammar.
* From this generate correct structure for EMF modelling framework.
* Write validation tests (depends on EMF structure).
* Use this to do validation (error messages).
I need to do all this to get good error messages showing a red line
under the text causing the error. I think it should be possible to get
good error messages showing exactly what caused it and I think this is
one of the key advantages of this approach but it will take a long time.
At the moment the error messages are just the defaults generated by
Xtext which are very bad (useless). If this existing code were used it
would give a bad impression to the users and so I think it would do more
harm than good. I would therefore like to wait until I get these things
sorted out before attempting to combine with your code.
Martin