class Bindgen::Parser::Runner
- Bindgen::Parser::Runner
- Reference
- Object
Overview
Runner for the Clang part. The path can also be configured through the
BINDGEN_BIN
environment variable.
Defined in:
bindgen/parser/runner.crConstant Summary
-
BINARY_PATH =
File.expand_path("#{File.dirname("/srv/crystaldoc.info/github-Papierkorb-bindgen-master/src/bindgen/parser/runner.cr")}/../../../clang/parser")
-
Default path to the binary
Constructors
-
.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.
Class Method Summary
Instance Method Summary
-
#arguments(input_file)
Arguments for the tool binary
- #logger
-
#run : String
Calls the clang tool and returns its output as string.
-
#run_and_parse : Document
Calls the clang tool and directly parses its output
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.