Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext grammar for SQL(Right now I work on mapping SQL to Cypher and vice versa, I need Xtext grammars for SQL and Cypher)
Xtext grammar for SQL [message #1852698] Wed, 01 June 2022 11:15 Go to next message
Аби Палагашвили is currently offline Аби ПалагашвилиFriend
Messages: 2
Registered: October 2021
Junior Member
Hello everybody

Right now I work on mapping SQL queries to Cypher and vice versa.
I am going to create an ATL mapping
To parse queries into ecore models, I need a grammar of languages in Xtext.

For Cypher I've found this one:
https://github.com/code-kontor/openCypher-Xtext/blob/master/io.codekontor.opencypher.xtext.parent/io.codekontor.opencypher.xtext/src/main/java/io/codekontor/opencypher/xtext/OpenCypher.xtext

But for SQL I didn't find a good example
Does anybody can share a good one?
Re: Xtext grammar for SQL [message #1852702 is a reply to message #1852698] Wed, 01 June 2022 13:16 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7489
Registered: July 2009
Senior Member
Hi

https://www.eclipse.org/Xtext/community.html

has a mention of SQL.

https://www.eclipse.org/forums/index.php/t/266404/

is not very encouraging.

https://forcedotcom.github.io/phoenix/

looks almost as if it was produced with the help of the Xtext 2 pretty picture tool. Creating an Xtext grammar could be really easy.

Regards

Ed Willink
Previous Topic:Workaround semantic predicates
Next Topic:'Generate WTEXT artifact' does not end...
Goto Forum:
  


Current Time: Thu Jun 30 21:57:10 GMT 2022

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

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

Back to the top