Dear X10 users,
We are planning to change the parser of X10 to improve the behavior of
X10DT. The new parser is now available in the trunk of the svn repository.
We have introduced non-backward compatible syntax changes:
- there is no implicit return in method definitions;
- the body of method and constructor definitions cannot be a block
introduced with an "=".
Therefore, the following method definition is now incorrect:
def f (x: long) = {
x + 1
}
It should be rewritten:
def f (x: long) {
return x + 1;
}
or:
def f (x: long) = x + 1;
A tool converting programs to the new syntax is available:
http://x10.sourceforge.net/misc/x10-2.5.3-converter/
You can still use the old parser by setting the option -ANTLR_PARSER=false.
A new feature introduced with the parser is the option -DISPLAY_PARSE_TREE
that shows in a window the parsed program.
The new X10DT should be available soon.
Do not hesitate to try the new parser and give us your feedback!
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users