SQL to JSON example

32 views
Skip to first unread message

Cev Ing

unread,
Nov 27, 2015, 8:02:28 AM11/27/15
to marpa parser
Thank you everybody for the help. I was able to create my first translator using Marpa.
It is an conversion of a small DDL subset of SQL to JSON.

This is the grammar: 

This the translator with the semantic actions:

This is the example DDL source:

And this is the JSON output:

It does not do any blessing but uses just actions.

Maybe it is useful for other newbies.
Reply all
Reply to author
Forward
0 new messages