// Package "config" parses ad handles the user settings given to the program. package config // Interpreter specifies the reduction engine to use. type Interpreter string const ( LambdaInterpreter Interpreter = "lambda" DeBruijnInterpreter Interpreter = "debruijn" ) // Configuration settings for the program. type Config struct { Source Source // The source code given to the program. Destination Destination // The destination for the final result. Verbose bool // Whether or not to print debug logs. Explanation bool // Whether or not to print an explanation of the reduction. Profile string // If not nil, print a CPU profile during execution. Statistics bool // Whether or not to print statistics. Interpreter Interpreter // The interpreter engine to use. }