'How would I parse lambda expressions in C# with ANTLR?

Using this grammar, I need to parse a file with C# code and make changes only to lambda expressions, without changing the rest of the code. How would I accomplish this? Is there a way to do it with a simpler grammar? e.g.

Action actionSingleLineNoImmediateAssignment = null;
actionSingleLineNoImmediateAssignment = () => Console.WriteLine("Non-returning lambda");

into

Action actionSingleLineNoImmediateAssignment = delegate () { Console.WriteLine("Non-returning lambda"); };


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source