How do i creat create a syntax of a small imperative programming language&implement a parser for it in c++?
check out Yacc and lex (or their gnu counterparts, flex and bison). It is fairly easy to describe your own syntax with the lex/yacc combination. The you write the handlers to process the expressions.
No comments:
Post a Comment