Phasor 3.3.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
Phasor.hpp
Go to the documentation of this file.
1// Copyright 2026 Daniel McGuire
2// Phasor Toolchain Licensed under the Apache License, Version 2.0 (the "License");
3// Phasor Runtime Licensed under the Apache License (with LLVM-Exceptions), Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6// http://www.apache.org/licenses/LICENSE-2.0
7// or https://llvm.org/LICENSE.txt
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14// README
15//
16// Usage:
17// ```cpp
18// // #define NEED_PHASOR_C_ABI
19// #include <Phasor.hpp>
20// ```
21//
22// This header includes all Phasor headers required for using the runtime
23// in C++ code. If you define NEED_PHASOR_C_ABI before including
24// this header, it will also include the C ABI header.
25//
26// It is recommended to read the documentation via phasor-help CLI or at phasor-docs.pages.dev/man?f<TITLE>.<SECTION>
27//
28// Also read the below README docs in these headers:
29
30#pragma once
31
32#include "Phasor/PhasorFFI.hpp"
34#include "Phasor/PhasorVM.hpp"
35#include "Phasor/PhasorISA.hpp"
36#include "Value.hpp"
37#ifdef NEED_PHASOR_C_ABI
38#include "PhasorRT.h"
39#endif // PHASOR_C_ABI