cppfront
cppfront copied to clipboard
A personal experimental C++ Syntax 2 -> Syntax 1 compiler
Cppfront produces the error: ``` main.cpp2(3,22): error: string literal "\" is missing its closing " main.cpp2(5,32): error: local variable c cannot be used in its own initializer ``` while parsing...
Closes https://github.com/hsutter/cppfront/issues/1152. Missing things: - [ ] Review - [ ] Regression tests if required.
The enums generated by `@enum` in cppfront can not be used as template type arguments. E.g: ``` range_flags: @enum type = { not_greedy := 1; greedy; possessive; } S: type...
**Describe the bug** The identifier : const = value functionality is not consistent. 1) Doesn't work at all in global/namespace scope (might be a feature, not a bug) and 2)...
The current system for creating and using classes outside the main cpp2 file is to write a file with the extension `.h2` containing the classes that are needed, then put...
I was thinking about opening a separate issue, but they are all pretty minor and think should fit fine in just this one. 0. General: It seems code blocks line...
**Describe the bug** cppfront produces an error when parsing a UTF-8 character literal (`u8`) which is not a hex character. **To Reproduce** Run cppfront on this code: ```cpp main: ()...
This PR reworks the Github Actions workflow files and its associated code, so that there's only 1 pipeline that does all that we might need: * Build cppfront * Run...
I.E. ``` numbers: int[]= ( 1, 2 ); ``` which corresponds to ``` numbers: std::array = ( 1, 2 ); ``` It eliminates guidance literature of having to tell them...
The purpose of this PR is to allow including pure headers into multiple translation units without ODR violations. First and foremost it splits `phase2_func_defs` into `phase2_inline_defs` and `phase3_regular_defs`. Produced .h...