package alba

  1. Overview
  2. Docs
Alba compiler

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.4.2.tar.gz
sha256=203ee151ce793a977b2d3e66f8b3a0cd7a82cc7f15550c63d88cb30c71eb5f95
md5=64367c393f80ca784f88d07155da4fb0

doc/alba.albalib/Albalib/Printer/Make/index.html

Module Printer.MakeSource

Pretty printer for some standard messages needed by the Alba compiler.

E.g.

  • Error header
  • Source files with error markers

Parameters

Signature

Sourceval print_error_header : string -> PP.t
Sourceval print_source : string -> range -> int list -> PP.t

print_source source_string range error_tabs

Print the source string with line numbers and put error markers around range. End the printing at the end of range.

Add tab positions for the error tabs.