Go to file
2024-07-21 06:35:17 +03:00
.vscode migration to gitea and cbuild 2.1 2024-07-21 06:35:17 +03:00
dependencies migration to gitea and cbuild 2.1 2024-07-21 06:35:17 +03:00
fonts embed_fonts 2023-04-01 17:03:29 +06:00
src migration to gitea and cbuild 2.1 2024-07-21 06:35:17 +03:00
tasks migration to gitea and cbuild 2.1 2024-07-21 06:35:17 +03:00
.gitignore migration to gitea and cbuild 2.1 2024-07-21 06:35:17 +03:00
.gitmodules migration to gitea and cbuild 2.1 2024-07-21 06:35:17 +03:00
project.config migration to gitea and cbuild 2.1 2024-07-21 06:35:17 +03:00
README.md migration to gitea and cbuild 2.1 2024-07-21 06:35:17 +03:00

GraphC - visual programming tool

When i was working on my compiler project, i understood that AST processing code isn't clear even for me because of hundreds lines of condition branches. GraphC is GUI editor of condition trees. It generates optimized AST processing code in C. GUI is based on Dear ImGui and SDL

Installation

  1. Clone the repository
git clone --recurse-submodules https://timerix.ddns.net:3322/Timerix/GraphC.git
  1. Install cbuild
  2. Install SDL2 from package manager or compile it from source.
    If you are using msys, switch to mingw64 sh.
    cd ..
    git clone https://github.com/libsdl-org/SDL.git
    cd SDL
    ./configure
    make -j [number of cpu threads]
    
    Then you can install it systemwide (on Linux):
    sudo make install
    
    or copy to ./libs (on Windows):
    mkdir -p GraphC/libs
    cp ./build/.libs/SDL2.dll GraphC/libs/
    
    If it doesn't work, read SDL/INSTALL.txt and SDL/docs/README.md.
  3. Symlink SDL headers directory to dependencies/include
    cd GraphC
    ln -s SDL2_HEADERS_DIRECTORY_ABSOLUTE_PATH dependencies/include/
    
    Location of the headers can be found by pkg-config --cppflags --libs sdl2. Mingw installs SDL2 headers to /mingw64/include/SDL2.
  4. Compile the program
    cbuild build_exec