Is it possible to add comments to .tx files for textx? If so, how?

127 Views Asked by At

Was working through the hello-world example in the docs.

I then realized I wanted to add comments to help me learn the textX syntax better.

There's no indication that this is possible in the first place. Googling didn't help.

Please advise.

1

There are 1 best solutions below

0
On BEST ANSWER

From the documentation:

Grammar comments

Syntax for comments inside a grammar is // for line comments and /* ... */ for block comments.