Commit 175087c1a6587cd93a1ec837e64890440d5862ad

Authored by Salvador Abreu
1 parent c19f0d33
Exists in master

new 'debug' action

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
fzn-parser/fznslurp.pl
... ... @@ -12,6 +12,8 @@ main([]).
12 12 action(load) :- !, load_ast(AST), g_assign(ast, AST).
13 13 action(dump) :- !, g_read(ast, AST), dump_ast(AST).
14 14 action(halt) :- !, halt.
  15 +action(debug) :- g_read(ast_debug, true), !, g_write(ast_debug, false).
  16 +action(debug) :- !, g_write(ast_debug, true).
15 17 action(ACTION) :- format("%w: unknown action.\n", [ACTION]).
16 18  
17 19  
... ...