1

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.

Simplex
  • 171
  • 1
  • 6

1 Answers1

2

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.

MrMeritology
  • 1,840
  • 13
  • 14