create a compiler

Started by
20 comments, last by citizen3019 20 years, 6 months ago
Spirit, which is a library that enables you to write parsers directly in C++, looks very cool.

Yacc -->  if_stmt: "if" "(" expr ")" stmt         | "if" "(" expr ")" stmt "else" stmtSpirit -->  if_stmt =     (str_p("if") >> '(' >> expr >> ')' >> stmt)  || (str_p("if") >> '(' >> expr >> ')' >> stmt ("else" >> stmt));  



[edited by - Mayrel on October 8, 2003 12:46:09 PM]
CoV
Advertisement
quote:Original post by citizen3019
Good day,

Was wondering if someone might direct me toward a comprehensive forum, site, etc. that dealt with creating compilers. Not Visual C/C++ caliber but something simpler with which an at-home coder might have fun playing around?

Thanks,
c3019


You can get a free online book from here It comes with a bunch of example code.

Patrick

This topic is closed to new replies.

Advertisement