asdlgen(1)

asdlgen1

Compiler for the abstract syntax description language (asdl).

Usage

asdlgen COMMAND [OPTIONS] FILE ...

where COMMAND is one of the following:

help

version

c++ or cxx

sml

check

Overview

Asdlgen reads the specified of files, which should contain ASDL module and view declarations, and produces pickling and unpickling code.

Options

Common options

-n

Do not write any output files. Instead write the list of files that would have been written to the standard output.

-d DIR, --output-directory=DIR

Specify the output directory to place the generated files. By default the output will be placed in the same directory as the input file from which it was produced.

--gen=NAMES

Specifies the components to generate, where NAMES is a comma-separated list of names taken from the following:

• types — generate the type definitions from the ASDL specification.

• memory — generate the memory pickler

• file — generate the file pickler

• sexp — generate the S-Expression pickler (SML only).

C++ options

--base-include=FILE

Specify the name of the C++ header file that defines the primitive ASDL types and functions. The default value is asdl/asdl.hxx.

SML options

--cm=FILE

Generate a CM file for the pickler; this will define a CM library. Note that if the ASDL specification includes primitive modules, these will be included in the list of exported structures, but the supporting source files will have to be added to the CM file by hand.

--mlb=FILE

Generate an MLB file for the pickler. Note that if the ASDL specification includes primitive modules, these will be included in the list of exported structures, but the supporting source files will have to be added to the MLB file by hand.

Copying

Copyright © 2020 The Fellowship of SML/NJ

This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Author

The original version of asdlgen was written by Dan Wang as part of the National Compiler Infrastructure Project at Princeton University. This version of the tool was implemented by John Reppy.

From smlnj 110.99.9-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.