I missed one point.
In my grammar, I have the assignment like: value=SomeExpression
And this SomeExpression has sub rules and assignments as written above.
I want to write a value Converter for this SomeExpression. I tried writing it. The method is getting called but I get string as null value in toValue(final String string, final INode node) method.