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)
Drudge asked 6/7, 2015 at 11:17

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...
Ascogonium asked 30/12, 2012 at 16:8

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

Xtext 2.9 changed the way scope providers work and I don't understand how they work now. Let's say I have the following grammar: grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.commo...
Acquainted asked 25/3, 2016 at 16:39

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...
Posse asked 26/8, 2012 at 1:28

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?
Chink asked 4/4, 2014 at 14:0

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....
Contrail asked 13/3, 2014 at 11:44

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...
Slipcase asked 26/2, 2014 at 9:48

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")...
Colonist asked 9/8, 2013 at 16:7

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".
Pipsissewa asked 26/7, 2013 at 5:32

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...
Webster asked 6/11, 2011 at 11:27

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...
Trilateration asked 17/9, 2012 at 12:8

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() } } ...
Sequestration asked 7/11, 2011 at 8:54

3

What are the disadvantages/drawbacks of using Xtend?
Fulvia asked 10/11, 2011 at 11:51
1

© 2022 - 2024 — McMap. All rights reserved.