Questions tagged [xtext]

Use this tag to ask about Eclipse Xtext which is a framework for developing domain specific or general purpose programming languages.

The Xtext framework, which is part of the Eclipse project, is used to develop domain specific or general purpose languages. It provides rich capabilities for integrating a DSL with the Java programming language and the Eclipse IDE.

Using the Xbase expression language in a DSL, it can directly be mapped to Java types. Also accessing Java types in a DSL is easy with Xbase.

For any Xtext language Eclipse's IDE capabilities can be adapted easily by generating class stubs for automatic formatting patterns, scopes and cross references, static validation, content proposals, the outline view or providing quick fixes. Once a stub is implemented it is automatically used by the DSL editor in Eclipse.

1374 questions
-1
votes
1 answer

eclipse xtext: How can I know if file contain errors

I am implementing an Eclipse plugin in Java. I want to write a function that for a given path to a file (such as file.myDSL) returns whether the file has errors or it's a legal file.
RoG
  • 411
  • 4
  • 20
-1
votes
1 answer

How to remove Java from RCP application

I am making an Eclipse product which contains the Xtext plugin.I followed this tutorial https://kthoms.wordpress.com/2010/11/12/setting-up-a-rcp-product-for-a-dsl/ and I made a running product. I created a platform runtime feature with the "needed"…
alexmouth
  • 11
  • 3
-1
votes
1 answer

How to parse a line with double character tokens

I'm trying to write an xtext parser to parse a simple markup language. The markup uses double characters for styling text. !! is used for bold. I'm struggling to work out how to create the grammar, in particular how to handle the double character…
Daniel Walton
  • 113
  • 1
  • 11
-1
votes
1 answer

Xtext How to auto build referenced language

I use 2 different DSL languages in my Project and reference them like described in this tutorial: http://christiandietrich.wordpress.com/2012/08/07/xtext-referencing-elements-of-one-dsl-from-another-dsl/ My question is: How to configure the build of…
tuxflo
  • 111
  • 3
-1
votes
1 answer

is it possible to use the ui of xtext for some external .exe instead of defining grammar

I am trying to use the UI of xtext (java plugin) for some external exe program using processbuilding is it possible to change the functionality of compilation button so it do its work in routine manner and display the results of external .exe…
andrew Pk
  • 23
  • 3
  • 10
-1
votes
1 answer

How to embed new line character in string in xtend?

I am generating a class field in my JvmModelinferrer in xtend: val exp = NodeModelUtils::getNode(rule.expression); members+=rule.toField("text",rule.newTypeRef('java.lang.String'))[ ^static = true …
Marcus Mathioudakis
  • 837
  • 1
  • 6
  • 19
-2
votes
1 answer

injecting deleted files while codegen

using this code to fetch files for codegen from filesystem public void executeCommand(Resource resource, Document document, ILanguageServerAccess access, ExecuteCommandParams params) { JavaIoFileSystemAccess fileSystemAccess =…
Siddharth
  • 1
  • 1
-2
votes
2 answers

XText - How to check syntax violation in next line

I have a problem with xtext. Basicly I try to create a whitespace sensitive language. This is what my grammer should allow: Title Message Signal 1 Signal 2 Struct Signal 3 Signal 4 And this should be not allowed. …
user281874
  • 53
  • 12
-2
votes
1 answer

java.lang.ClassCastException: org.eclipse.xtext.impl.KeywordImpl cannot be cast to org.eclipse.xtext.RuleCall

After upgrading Xtext in my Eclipse from 2.3.1 to 2.4.3, I see these errors in the log: org.eclipse.xtext.parser.ParseException: java.lang.ClassCastException: org.eclipse.xtext.impl.KeywordImpl cannot be cast to org.eclipse.xtext.RuleCall …
Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
1 2 3
91
92