Skip to content

Commit

Permalink
Enable church numerals and standard environment by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbor committed Oct 24, 2024
1 parent 0b173a2 commit e9e6cd4
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,9 @@ struct Args {
#[clap(long)]
print_macros: bool,

/// Add std terms to the environment
#[clap(long)]
std: bool,

/// Enable church numerals
#[clap(long)]
church_nums: bool,
/// Disable standard environment and church numerals
#[clap(short, long)]
strict: bool,

/// Open documentation in the browser
#[clap(long)]
Expand All @@ -75,8 +71,8 @@ fn main() {
let env = StdEnvironment::new();
let mut interpreter = Interpreter::new(env);
interpreter.set_strategy(args.strategy);
interpreter.set_church_num_enabled(args.church_nums);
if args.std {
interpreter.set_church_num_enabled(!args.strict);
if !args.strict {
interpreter.interpret_std().unwrap();
}

Expand Down

0 comments on commit e9e6cd4

Please sign in to comment.