package ninja_utils

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ninja_utils.ExprSource

Helper module to build ninja expressions.

Sourcetype elt =
  1. | Word of string
  2. | Splice of t Var.t
  3. | Raw of string
Sourceand t = elt list

A ninja expression is a list of elements: Words (single shell words, quoted as needed at emission), Splices (references to vector variables), and Raw tokens (emitted as-is: shell operators, ninja builtin references). How each element is dressed depends on the position (command, path, description) where the expression is emitted; emission is internal to this library.