Skip to content

Commit

Permalink
Merge branch 'main' into Enable-multiple-returns-from-operators
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingo Prötel committed Dec 25, 2023
2 parents 113629a + 210b2a0 commit cb57404
Show file tree
Hide file tree
Showing 312 changed files with 11,294 additions and 8,246 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
48 changes: 48 additions & 0 deletions .github/workflows/build-cppfront.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Multi-platform Build of cppfront
on: push
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: Compiler name & version
run: cl.exe
- name: Build
run: cl.exe source/cppfront.cpp -std:c++latest -MD -EHsc -experimental:module -W4
build-unix-like:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest]
compiler: [g++-10, g++-11, g++-12, clang++-12, clang++-14]
cxx-std: ['c++20', 'c++2b']
exclude:
# GCC 10 doesn't have support for c++23
- compiler: g++-10
cxx-std: 'c++2b'
# Clang 12 and 14 do not compile on 'c++2b' due to llvm/llvm-project#58206
- compiler: clang++-12
cxx-std: 'c++2b'
- compiler: clang++-14
cxx-std: 'c++2b'
include:
- runs-on: macos-11
compiler: clang++
cxx-std: 'c++20'
- runs-on: macos-latest
compiler: clang++
cxx-std: 'c++20'
runs-on: ${{ matrix.runs-on }}
env:
CXX: ${{ matrix.compiler }}
CXXFLAGS: -std=${{ matrix.cxx-std }} -Wall -Wextra -Wold-style-cast -pthread
steps:
- uses: actions/checkout@v3
- name: Install compiler
if: startsWith(matrix.runs-on, 'ubuntu')
run: sudo apt-get install -y $CXX
- name: Compiler name & version
run: $CXX --version
- name: Build
run: $CXX source/cppfront.cpp $CXXFLAGS -o cppfront
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
See [License](LICENSE)

[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)
[![Build (clang, gcc, vs)](https://github.com/hsutter/cppfront/actions/workflows/build-cppfront.yaml/badge.svg)](https://github.com/hsutter/cppfront/actions/workflows/build-cppfront.yaml)

Cppfront is an experimental compiler from a potential C++ 'syntax 2' (Cpp2) to today's 'syntax 1' (Cpp1), to learn some things, prove out some concepts, and share some ideas. This compiler is a work in progress and currently hilariously incomplete... basic functions work, classes will be next, then metaclasses and lightweight exceptions.

Expand Down
Loading

0 comments on commit cb57404

Please sign in to comment.