将一段文本根据语法规则进行语法分析，并生成语法树。
文本：'I saw the man with a telescope.'
Syntax analysis of the given text produces the following parse tree:

             (S)
            /   \
          (NP)  (VP)
          /     /   \
       (N)   (V)  (NP)
             |    /   \
            saw  (Det) (N)
                 |    |
                the  man
                   |
               (PP)
                 |
              (P) 
                |
              with
                 |
              (NP)
                 |
               (Det)
                 |
                a telescope