class Bindgen::Parser::Runner

Overview

Runner for the Clang part. The path can also be configured through the BINDGEN_BIN environment variable.

Defined in:

bindgen/parser/runner.cr

Constant Summary

BINARY_PATH = File.expand_path("#{File.dirname("/srv/crystaldoc.info/github-kalinon-bindgen-last-working/src/bindgen/parser/runner.cr")}/../../../clang/parser")

Default path to the binary

Constructors

Instance Method Summary

Constructor Detail

def self.new(classes : Array(String), enums : Array(String), macros : Array(String), functions : Array(String), config : Configuration, project_root : String) #

project_root must be a path to the directory the configuration YAML resides.


[View source]

Instance Method Detail

def arguments(input_file) #

Arguments for the tool binary


[View source]
def run : String #

Calls the clang tool and returns its output as string.


[View source]
def run_and_parse : Document #

Calls the clang tool and directly parses its output


[View source]