It seems like a DSL (Domain-specific Language) developed in Xtext and Xpand is very much bound with Eclipse. Is there any way I can compile my DSL on command line, just like compiling Java code?
Compile a DSL developed in Xtext and Xpand on command line
965 Views Asked by darcyy At
1
There are 1 best solutions below
Related Questions in DSL
- Apache Camel with database query in Java DSL
- Quick fix for terminal rules in xtext
- Building fluent APIs in Java to build testdata for database
- Can I use a dot in a config file of Fluentd using DSL?
- Match string in XText regardless of upper/lower case
- Xtext Custom DSL formatting
- How to structure my XText terminals? WORDS/SL_STRING/ML_STRING
- Allowing only one command perline in DSL
- Xtext grammar describing cron expression not working as expected
- visiting all nodes/subnodes of Ecore model generated by DSL
- Tiny DSL implementation in Python
- Elastic search (DSL): term does not match anything
- Database modeling for defining and processing realtime sports events
- Is it possible to build JetBrans MPS editor into my program?
- Dynamically generate prefixes for method names
Related Questions in XTEXT
- Quick fix for terminal rules in xtext
- Match string in XText regardless of upper/lower case
- protobuf-dt not working on Eclipse Luna
- Xtext Custom DSL formatting
- How to structure my XText terminals? WORDS/SL_STRING/ML_STRING
- quickfix format using xtext
- Xtext grammar for a nested indented language
- Xtext linking service and derived state
- xtext generator how to prevent file override
- Allowing only one command perline in DSL
- Cross reference to multiple names in the same grammar rule
- Xtext grammar describing cron expression not working as expected
- visiting all nodes/subnodes of Ecore model generated by DSL
- Xtext grammar rule composite
- Specify supertype of JvmTypeReference in Xtext grammar
Related Questions in XPAND
- Can we do template based generation using only Xtend2
- Java code generation with XPAND (nested packages)
- How to configure Xtext mwe.Reader to fill the root element in a slot
- Hibernate columnDefault true needs to be mapped to sqlserver BIT default 1
- How to convert my DSL to an existing programming language?
- Compile a DSL developed in Xtext and Xpand on command line
- M2T Xpand with existing ecore model
- generated Xpand code ' editor does not contain a main type'. However I have a main method
- Samples from Xpand -
- Actionscript 3 code beautifier for xpand (MWE2 Workflow)
- Make either a reference or a terminal accessible through the same element name in Xtext/Xpand?
- How To invoke a model's template from another model in xpand for AUTOSAR
- Is it possible to pass parameters from MWE2 configuration to XTend
- How to migrate code generation from xpand to xtend(2)?
- How can I return a list based on a condition on the referencing elements of the list
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you have a mwe workflow to execute your generator with, it can be executed from the command line as well. Look for the Mwe2Launcher class (http://git.eclipse.org/c/emf/org.eclipse.mwe.git/tree/plugins/org.eclipse.emf.mwe2.launch/src/org/eclipse/emf/mwe2/launch/runtime/Mwe2Launcher.java) for details.
If you already execute your Xpand generator from Java, then you have to simply wrap its call into an executable command line application.
In both case, you can either create an Eclipse application with all the dependencies by defining an Eclipse product that contains Xtext, Xpand, your plug-ins (and mwe if needed).