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
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
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
Hi Paul,
thank you for the link (https://github.com/apache/groovy/pull/1343 )
As far as I could see the NV macros you propose
(https://github.com/apache/groovy/pull/1343/commits/0a3ba697511335a82ec7487998976aacdc8667de)
all create "x0=${x0.foo()}, x1=${x1.foo()}, ..." GString|s, with foo in
Hello
I have an extension of GroovyClassLoader that I use as follows
a) I override loadClass to make sure I decide where to load from
b) I first call loadClass on my parent class loader to make sure the class is
not loaded there (I assert if it is. This code is not shown below)
c) I then call