cppfront icon indicating copy to clipboard operation
cppfront copied to clipboard

A personal experimental C++ Syntax 2 -> Syntax 1 compiler

Results 268 cppfront issues
Sort by recently updated
recently updated
newest added
trafficstars

This patch represents a suggestion: Default new should return std::optional with owning_reference managing the life time of the object in a similar way as a unique_ptr would with the exception...

Resolves #1283. Resolves #1037. Resolves #568. Resolves #542. The `main` branch already treats a return type contextually, only lowering a _braced-init-list_ if it can work: . This PR recognizes two...

question - further information requested
pri-3: smaller targets of opportunity

**Describe the bug** I'd like to initialize a `std::map` (and other associative containers) with an initializer list or some other terse syntax similar to C++. **To Reproduce** I'm trying to...

bug

I will update this overview such that it is easy to grasp the status of the implementation. Example file: `example.cpp2` ``` example: @regex type = { regex := "ab*bd"; }...

feat: evaluate program-defined metafunctions (based on #797) A metafunction is normal Cpp2 code compiled as part of a library. When parsing a declaration that `@`-uses the metafunction, the library is...

If the syntax to describe the grammar is changed to an `EBNF` understood by https://www.bottlecaps.de/rr/ui we can have a nice navigable railroad diagram to help document/develop/debug the grammar/parser, see bellow:...

suggestion

``` main: () -> int = { } ``` could be ``` main: () -> int { } ``` This will align Cpp2 with C++ for most declarations **Will your...

suggestion

I'd like the ability to disable UFCS with 2 mechanisms: 1. A new switch on cppfront to control whether UFCS is enabled (defaults to `true`) for a whole Cpp2 file...

suggestion

Please correct me if I am mistaken or let me know whether I am lagging behind the status-quo of cppfront design. I believe that the success of any new "C++...

Big part of other modern languages is ease of using libraries via package management. I believe that important thing is that there is one package management to be used by...

suggestion