Skip to content

Repository files navigation

image

image image image image

Buy the binary for Windows over at itchio to support the developer

About

CodeNect is a visual programming software developed for my thesis as a supplementary tool for beginners in programming.

Demo/Screenshots

Check the media for a ton of images

Features

  • The visual code can be compiled to C code using TinyC Compiler
  • No installation needed

The following data types (slots) are supported:

  • Bool
  • Integer
  • Float
  • Double
  • String

The following nodes are supported:

  • Variable
  • Operation - +, -, *, /
  • Comparision - ==, !=, <, >, <=, >=, &&, ||
  • Action:
    • Print
    • Prompt
    • Set
  • Mathematical functions:
    • Root
    • Power
    • Sine
    • Cosine
    • Tangent
  • String functions:
    • To lowercase
    • To uppercase
    • To arrray
  • Get
    • Variable (string) length
    • Array size
    • Array element (by index)
  • Branch/If
  • For-Loop
  • Data Structure:
    • Array

Platforms

The supported platforms are:

  • Linux
  • Windows 7, 10 (64 bit)
  • macOS (Apple Silicon / arm64, also builds on Intel)

Requirements

  • CMake (3.16 or higher on macOS for Objective-C support)
  • Ninja
  • Clang++ (11.1.0 or higher)
  • C++17

Platform specific libraries:

  • Linux: gtk+-3.0, glfw3, OpenGL
  • Windows: bundled in lib/
  • macOS: glfw, OpenGL (system framework), Cocoa/AppKit (system framework)

Compiling/Building

(clone the repo first then get the submodules)

git clone https://github.com/flamendless/CodeNect-VPS.git
cd CodeNect-VPS
git submodule update --init --recursive
  • For Linux, just run ./build.sh rebuild && ./build.sh compile && ./build.sh run
  • For Windows, just run build_win.bat
  • For macOS (Apple Silicon), see the section below

macOS (Apple Silicon)

  1. Install the Xcode Command Line Tools (provides clang, make, git):
xcode-select --install
  1. Install the build dependencies and build the architecture-specific libtcc in one step with Homebrew:
./build.sh deps_macos

This runs brew install cmake ninja pkg-config glfw and then ./scripts/build_tcc_macos.sh, which compiles TinyCC for your Mac and installs libtcc.a/libtcc1.a into lib/macos/. You can also run those two steps manually if you prefer.

  1. Build and run just like on Linux:
./build.sh rebuild && ./build.sh compile && ./build.sh run

Note: The libtcc static libraries are architecture and SDK specific, so they are not committed to the repo. ./scripts/build_tcc_macos.sh builds them for your machine. TinyCC's macOS (Mach-O) backend is experimental, especially on Apple Silicon; pin a known-good ref with ./scripts/build_tcc_macos.sh <git-ref> if you hit issues.

Testing

  • cd test && ./build.sh rebuild
  • ./build.sh test_detailed or ./build.sh test_summary

Tools/Libraries

CodeNect is grateful to the following tool/libraries for making it possible:

LICENSE

License is GNU General Public License v3.0

About

CodeNect is a visual programming software developed for my thesis as a supplementary tool for beginners in programming.

Topics

Resources

Stars

Watchers

Forks

Releases

Sponsor this project

Packages

Contributors

Languages