Skip to content

SheafificationOfG/based-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Based C++

This repo provides an implementation of the GNU Interface Layer (GIL) and standard library for g++.

C++ is the best interpreted language

C++ is the best interpreted language!

Usage

Here is a simple "Hello, world!" in C++.

#include "gil/std.hpp"
using namespace gil::std;

volatile auto run = main<{
  str::puts(str::literal("Hello, world!\n"))
}>;

To run the program, run

g++ -std=c++23 -Based hello_world.cpp -o -

Note

The above command only works if you invoke g++ from the root of this repo; otherwise, you will have to provide the full path to the required abstract system emulator drivers (ased) folder.

Examples

  • hello_world.cpp

    Be greeted in all of the languages supported by YVR!

  • hello_world_vmi.cpp

    Same as above, but without using the standard library.

  • calculator.cpp

    Perform a single binary operation on a pair of 64-bit signed integers.

  • mergesort.cpp

    Merge sort a comma-separated list of 64-bit signed integers.

About

C++ is the based interpreted language

Topics

Resources

Stars

Watchers

Forks