Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 854 Bytes

File metadata and controls

33 lines (22 loc) · 854 Bytes

Getting Started

To integrate Arcane into your project, make sure you include the following files in your build:

  • arcane.c
  • arcane.h
  • functions.c

These files provide the scripting language interpreter and the interop functionality needed to call C functions from scripts.

Example Usage

Include the header and call the interpret function to execute a script:

#include "arcane.h"

int main(void) {
    // Your Arcane script as a C string
    const char *script = "print(\"Hello, Arcane!\");";
    
    // Execute the script
    Value result = interpret(script);
    
    // Optionally process the result, if needed
    free_value(result);

    return 0;
}

This simple example demonstrates how to send a script to the interpreter. For more details, refer to the other sections of this documentation.

Back to Index