Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion g4/SecLangParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -349,14 +349,14 @@ actions:
action:
action_with_params COLON NOT? EQUAL? action_value
| action_with_params COLON action_value
| ACTION_TRANSFORMATION COLON transformation_action_value
| action_only
;

action_only:
disruptive_action_only
| non_disruptive_action_only
| flow_action_only
| ACTION_TRANSFORMATION COLON transformation_action_value
;

disruptive_action_only:
Expand Down
4 changes: 4 additions & 0 deletions listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,7 @@ func (l *TreeShapeListener) EnterComment(ctx *parser.CommentContext) {
l.results.Comments = append(l.results.Comments, "")
}
}

func (l *TreeShapeListener) EnterTransformation_action_value(ctx *parser.Transformation_action_valueContext) {
l.results.DirectiveValues = append(l.results.DirectiveValues, ctx.GetText())
}
173 changes: 84 additions & 89 deletions parser/seclang_parser.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading