"从语法上分析" can be translated into English as "analyze from a grammatical perspective" or "conduct a grammatical analysis of".
Here are some example sentences to illustrate the usage:
1、 We need to analyze this sentence from a grammatical perspective to understand its structure better.
(我们需要从语法上分析这个句子,以便更好地理解其结构。)
2、 Let's conduct a grammatical analysis of this paragraph to identify any errors.
(让我们对这段话进行语法分析,找出任何错误。)