"从语法上分析" can be translated into English as "analyze from a grammatical perspective" or "conduct a grammatical analysis of".
Both expressions convey the idea of examining or dissecting something (such as a sentence, a text, or a language phenomenon) with a focus on its grammatical structure and rules.
For example:
"We need to analyze this sentence from a grammatical perspective to understand its meaning better."
"The teacher conducted a grammatical analysis of the paragraph to help students grasp its syntax."