Re: Parrot parser customization

2020-08-09 Thread Jochen Theodorou
On 09.08.20 01:54, Saravanan Palanichamy wrote: Hello everyone If I wanted to introduce new syntax in my groovy script, how would I go about doing it? I want to embed custom syntax directly into the groovy file and have it be parsed into my custom AST nodes. An example would be myFunction()

Re: Parrot parser customization

2020-08-08 Thread Saravanan Palanichamy
Hello Daniel Thank you for your email. I am of the impression that the AST transformation works on a valid AST. I am trying to define custom syntax to make a valid custom AST. This means I am creating new syntax that is not easy to represent using the groovy language spec. Is that the right

Re: Parrot parser customization

2020-08-08 Thread Daniel Sun
I think you want to implement your own DSL. The AST transformation of Groovy could help you. Cheers, Daniel Sun On 2020/08/08 23:54:47, Saravanan Palanichamy wrote: > Hello everyone > > If I wanted to introduce new syntax in my groovy script, how would I go about > doing it? I want to embed

Parrot parser customization

2020-08-08 Thread Saravanan Palanichamy
Hello everyone If I wanted to introduce new syntax in my groovy script, how would I go about doing it? I want to embed custom syntax directly into the groovy file and have it be parsed into my custom AST nodes. An example would be myFunction() { List tableValues = select value from