File tree Expand file tree Collapse file tree 4 files changed +157
-111
lines changed Expand file tree Collapse file tree 4 files changed +157
-111
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ dune test
2312312 .  Understand term unification before touching ` unification.ml ` 
2322323 .  AST changes require updates to parser, evaluator, and pretty-printer
2332334 .  Test with existing examples in ` examples/ `  after changes
234+ 5 .  ** Always run ` dune fmt `  after finishing code modifications**  to ensure consistent formatting
234235
235236### Important concepts for contributors:  
236237-  ** Polarity**  drives interaction - positive/negative rays fuse
Original file line number Diff line number Diff line change @@ -104,8 +104,9 @@ let watch input_file timeout =
104104let  preprocess_only  input_file  = 
105105  let  expr =  parse input_file in 
106106  let  preprocessed =  Expr. preprocess expr in 
107-   preprocessed |>  List. map ~f: Expr. to_string |>  String. concat ~sep: " \n " 
108-   |>  Stdlib. print_endline
107+   preprocessed
108+   |>  List. map ~f: (fun  e  -> Expr. to_string e.Expr. content)
109+   |>  String. concat ~sep: " \n " |>  Stdlib. print_endline
109110
110111let  input_file_arg = 
111112  let  doc =  " Input file to process." in 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments