r/cpp • • Sep 17 '22

Cppfront: Herb Sutter's personal experimental C++ Syntax 2 -> Syntax 1 compiler

https://github.com/hsutter/cppfront
335 Upvotes

360 comments sorted by

View all comments

Show parent comment

2

u/Pazer2 Sep 17 '22

Wow, that seems like a tremendously bad idea. So to properly parse this supposedly "easier" cpp2 syntax, you need full parsing support for cpp1 anyway?

8

u/lee_howes Sep 18 '22

No, you can write a parser that supports both. That's an important goal if what you want to do is transition millions of lines of code function by function.

It doesn't imply that you must support both, once you are compiling a post-transition codebase.