Skip to content

Commit 99c9906

Browse files
authored
Merge pull request #136 from engboris/fix
Fix datatype of expr with locations
2 parents c3ed8e6 + 90ff93e commit 99c9906

File tree

4 files changed

+157
-111
lines changed

4 files changed

+157
-111
lines changed

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ dune test
231231
2. Understand term unification before touching `unification.ml`
232232
3. AST changes require updates to parser, evaluator, and pretty-printer
233233
4. 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

bin/sgen.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ let watch input_file timeout =
104104
let 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

110111
let input_file_arg =
111112
let doc = "Input file to process." in

0 commit comments

Comments
 (0)