Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ dune test
2. Understand term unification before touching `unification.ml`
3. AST changes require updates to parser, evaluator, and pretty-printer
4. Test with existing examples in `examples/` after changes
5. **Always run `dune fmt` after finishing code modifications** to ensure consistent formatting

### Important concepts for contributors:
- **Polarity** drives interaction - positive/negative rays fuse
Expand Down
5 changes: 3 additions & 2 deletions bin/sgen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ let watch input_file timeout =
let preprocess_only input_file =
let expr = parse input_file in
let preprocessed = Expr.preprocess expr in
preprocessed |> List.map ~f:Expr.to_string |> String.concat ~sep:"\n"
|> Stdlib.print_endline
preprocessed
|> List.map ~f:(fun e -> Expr.to_string e.Expr.content)
|> String.concat ~sep:"\n" |> Stdlib.print_endline

let input_file_arg =
let doc = "Input file to process." in
Expand Down
Loading
Loading