How to build parse tree with BNF I need to build parse tree for some source code (on Python or any program language that describe by CFG).

So, I have source code on some programming language and BNF this language.

Can anybody give some advice how can I build parse tree in this case?
Preferably, with tools for Python.
I suggest you use ANTLR, which is a very powerful parser generator. It has a good GUI for entering your BNF. It has a Python target capability.