Contents
Graphol is a Graph Oriented Language, with the compiler written in Rust.
Use this section as a quick reference for day-to-day usage.
This builds graphol (the CLI that can interpret .graphol files and also generate executables):
make buildInstall the binary after build:
sudo make installIn this mode, graphol generates a standalone Linux executable for the provided Graphol source:
graphol examples/program5.graphol -o program5Equivalent long flag:
graphol examples/program5.graphol --output program5Run the generated executable:
./program5If the input path is a directory, graphol automatically uses <directory>/main.graphol as the entry file.
Compile from directory entry:
graphol examples -o program_from_examplesThe -o / --output flag is optional:
- With
-o/--output: compiles the.grapholsource into a native Linux executable at the specified output path, which you run directly later. - Without
-o/--output: compiles the.grapholderiving the output name from the input and saving in the current path.
See the History Summary to understand the migration from JavaScript to Rust.