Skip to content

feat: Adds actual usable @ actions to the go templates#4238

Merged
parrt merged 1 commit intoantlr:devfrom
jimidle:feature/members
Apr 18, 2023
Merged

feat: Adds actual usable @ actions to the go templates#4238
parrt merged 1 commit intoantlr:devfrom
jimidle:feature/members

Conversation

@jimidle
Copy link
Collaborator

@jimidle jimidle commented Apr 18, 2023

feat: Add usable @ actions to the go code generator

As I implement my own parsers in the Go runtime, it became obvious that the existing @members and @Header were implemented incorrectly and in fact were not usable.

I cannot change the use of those existing actions as I have no way to know if people have already used them for something. So this PR adds the following new actions:

@structmembers {} // allows insertion of items in to the parser or lexer instance struct
@includes {} // allows specifying additional includes in the generated source code

There may be other actions that will prove to be useful down the line.

Signed-off-by: Jim.Idle <jimi@idle.ws>
@jimidle
Copy link
Collaborator Author

jimidle commented Apr 18, 2023

@parrt - another one for yah!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants