def get_field_names(ctx):
<EOL>fields = [<EOL>field<EOL>for field in type(ctx).__dict__<EOL>if not field.startswith("<STR_LIT>")<EOL>and field not in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]<EOL>]<EOL>return fields<EOL>
Get fields defined in an ANTLR context for a parser rule