xtend Questions
3
Solved
Is it possible to write comments inside an Xtend template? (for example in order to quickly comment out an IF-statement or anything)
2
Solved
I've found XTend and it really sounds great! But, I can't see any standalone command line compiler for this language. It seems only to run under eclipse. I've done some research, and found some peo...
2
Solved
I have to test my grammar (written with Xtext). I've see it is possible with use of unit test, but I can't find a good tutorial about it.
Can you help me?
Rectum asked 28/11, 2012 at 14:44
1
Solved
6
Solved
I can't seem to find a great way to express the following in Xtend without resorting to a while loop:
for(int i = 0; i < 3; i++){
println("row ");
}
println("your boat");
So, I guess my ques...
1
Solved
What are the characteristics, differences and similarities of all these Eclipse-based technologies starting with X (Xtext, Xtend)? Are there any more to learn about?
1
I need to get to validate existence of specific file in Xtext project. The file has similar path as validated object but other root directory, for example:
$projPath/src/dir1/dir2/ValidatedFile....
1
Solved
I use Xtext plugin for eclipse to define my language and generate some files from it.
The project is big and I would like to use multiple generators to generate my files, in addition to default gen...
3
Solved
Lets say you have the following code in xTend:
class StackOverflowGenerator {
def generate()'''
«var counter = 0»
«FOR i : 0 ..<10»
Line Numnber: «i»
«counter = counter + 1»
«ENDFOR»
'''
...
Sisyphus asked 23/8, 2013 at 17:58
1
Solved
I have a project structure that looks like this:
Tester
\-- src
|-- hello.java
\-- vocabulary.csv
I load the csv file using getResource:
url = this.getClass().getResource("vocabulary.csv")...
1
How can I declare an array of int in xtend?
I've tried ArrayList but I get the error "The primitive 'int' cannot be a type argument".
1
Given some iterable variable v and a type T I often find myself writing code such as
v.filter[it instanceof T].map[it as T]
Does there exist some helper which does the same functionality in a s...
Pseudaxis asked 10/4, 2013 at 14:12
2
Solved
I am learning xtend. What would be a nice way to create a comma separated list in xtend? (something like the SEPARATOR in xpand)
I want to produce a comma separated list of parameters in my genera...
Dogger asked 11/3, 2013 at 14:29
5
Solved
I'd like to write Java classes in the Xtend language (simply because its way more terse), and have it compile back down into Java classes of which I can use in my Java project. Just like coffeescri...
1
Solved
I am building a code generator in XTend where I already have an input model and meta model. That is, I use ATL to generate the input model for my XTend code generator (as part of a transformation s...
4
Solved
I'm trying out Xtend. Is it possible to make constructors? It seems so simple, but I'm getting an error when I try something like this:
class Scope extends Rect {
public Scope(){
super()
}
}
...
3
What are the disadvantages/drawbacks of using Xtend?
Fulvia asked 10/11, 2011 at 11:51
1
© 2022 - 2024 — McMap. All rights reserved.