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: 3
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: 7655
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: Wed Apr 24 23:50:12 GMT 2024

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

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

Back to the top