Skip to main content



      Home
Home » Modeling » TMF (Xtext) » integrate xtext with a webapplication(How xtext can be integration with a webapplication)
integrate xtext with a webapplication [message #1613870] Thu, 12 February 2015 18:37 Go to next message
Eclipse UserFriend
Hi,

Based on the samples and examples in this site and other sites, does xtext works closely with eclipse?

I have a requirement where I get a DSL query like "GET * WHERE CUSTOMER MAILING ZIP IS '50001") from a representative facing web application. I have a middle ware application which takes incoming requests and my questions are

1) how to validate inbound DSL query against the language/grammar?
2) Can my xtext project be made as a jar and use it with in the application to validate query?

Can someone share examples on similar or much better approach with our without using Xtext
Re: integrate xtext with a webapplication [message #1620588 is a reply to message #1613870] Tue, 17 February 2015 04:37 Go to previous messageGo to next message
Eclipse UserFriend
if you don't need syntax highlighting, content assist etc. but just parsing you could directly use antlr.
Re: integrate xtext with a webapplication [message #1620754 is a reply to message #1613870] Tue, 17 February 2015 07:02 Go to previous message
Eclipse UserFriend
Hi,

I use the Xtext generated core-bundle in a plain java application (even
outside OSGi) running on the command line.

You can see it at
http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/bundles/tooling/org.eclipse.fx.ide.fxml.compiler/src/org/eclipse/fx/ide/fxml/compiler/FXGraphCompiler.java

Does you server application run in an OSGi-Env? If yes then it is even
simpler because things will be setup automatically for you.

Tom

On 13.02.15 16:14, Laxman Kor wrote:
> Hi,
>
> Based on the samples and examples in this site and other sites, does
> xtext works closely with eclipse?
>
> I have a requirement where I get a DSL query like "GET * WHERE CUSTOMER
> MAILING ZIP IS '50001") from a representative facing web application. I
> have a middle ware application which takes incoming requests and my
> questions are
> 1) how to validate inbound DSL query against the language/grammar? 2)
> Can my xtext project be made as a jar and use it with in the application
> to validate query?
>
> Can someone share examples on similar or much better approach with our
> without using Xtext
Previous Topic:[Solved] Replacing an EStructuralFeature with a placeholder name in Xtext DSL
Next Topic:Defining a dsl using XText in Eclipse
Goto Forum:
  


Current Time: Mon Oct 27 16:53:11 EDT 2025

Powered by FUDForum. Page generated in 0.04331 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top