uuagc(1)

uuagc1

Attribute grammar compiler

Usage

uuagc [options ...] file

Overview

This program uuagc is the compiler of the (Utrecht University) Attribute Grammar system. It takes as input AG source files (.ag) and produces as output regular Haskell source files (.hs).

Available options:

-m

generate default module header

--module[=name]

generate module header, specify module name

-d, --data

generate data type definition

--strictdata

generate strict data fields (when data is generated)

--strictwrap

generate strict wrap fields for WRAPPER generated data

-c, --catas

generate catamorphisms

-f, --semfuns

generate semantic functions

-s, --signatures

generate signatures for semantic functions

--newtypes

use newtypes instead of type synonyms

-p, --pretty

generate pretty printed list of attributes

-w, --wrappers

generate wappers for semantic domains

-r, --rename

rename data constructors

--modcopy

use modified copy rule

--nest

use nested tuples

--syntaxmacro

experimental: generate syntax macro code (using knit catas)

-o file, --output=file

specify output file

-v, --verbose

verbose error message format

-h, -?, --help

get usage information

-a, --all

do everything (-dcfsprm)

-P search path, --=search path

specify seach path

--prefix=prefix

set prefix for semantic functions

--self

generate self attribute

--cycle

check for cyclic definitions

--version

get version information

-O,--optimize

optimize generated code (--visit --case)

--visit

try generating visit functions

--seq

force evaluation using function seq (visit functions only)

--unbox

use unboxed tuples

--case

use nested cases instead of let (visit functions only)

--Werrors

turn warnings into fatal errors

--dumpgrammar

dump internal grammar representation (in generated code)

Releases

7 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0–13

--Werrors since Debian 5.0 (Lenny); --case since Debian 5.0 (Lenny); --dumpgrammar since Debian 5.0 (Lenny); --optimize since Debian 5.0 (Lenny); --seq since Debian 5.0 (Lenny); --strictdata since Debian 5.0 (Lenny); --strictwrap since Debian 5.0 (Lenny); --unbox since Debian 5.0 (Lenny); --visit since Debian 5.0 (Lenny); -O since Debian 5.0 (Lenny).

Author

This manual page was written by Arjan Oosting <[email protected]> for the Debian system (but may be used by others).

From uuagc 0.9.56-1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.