I need a parser-building tool

Asked

Viewed 69 times

0

So, first I need a parse building tool, I don’t know exactly what it is and where I think, if possible preferably in the Python language.

I will use this tool in order to implement an expression recognizer for a "recursive descending parser" that I created earlier.

  • Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful for you. You can also vote on any question or answer you find useful on the entire site (when you have 15 points).

2 answers

1

What you want is a generator parser and probably the ANTLR is the most used of all. Not that it is certainly the best for what it needs. Coco/R is another well used. Another is the Sablecc. Some like the Javacc. Some people still prefer the old YACC/Bison. It’s worth taking a look at GOLD. Not everyone generates Pyhton code.

To know how you do the parser just enter a course with a good workload on the subject, can not answer in a reply on the internet, mainly in an exact way.

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.