Resources on parsing expressions
Asked Answered
P

2

1

I'm writing a program that needs to build syntax trees from expressions in prefix notation. What resources would you recommend I look into to learn about parsing expressions?

Pine answered 13/7, 2010 at 23:16 Comment(0)
P
1

Your question is rather broad. I'd look into anything dealing with the following:

Your best bet is to try and understand BNF's and EBNF's. From there you can go on to writing recursive-descent parsers (they can be created easily from your grammars with a few simple rules).

This page here talks about recursive-descent parsing using BNF's.

Perr answered 13/7, 2010 at 23:25 Comment(0)
D
0

In addition to the stuff already listed, I'd recomment to consider the following: http://en.wikipedia.org/wiki/Parsing_expression_grammar

Dorolisa answered 14/7, 2010 at 9:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.