Skip to content

Conversation

@fantazio
Copy link
Collaborator

@fantazio fantazio commented Dec 4, 2025

  • Fix a typo in the documentation
  • Refactor some code (mostly in src/deadArg.ml)
  • Simplify DeadType.to_string

+ Use the compiler's `Printtyp.type_expr` function instead of redefining
  it. WARNING : ensure this is compatible with LexiFi's internal
  compiler.
+ Change name from `_TO_STRING_` (unconventional) to `to_string`
+ Use clearer functions and parameters
+ Break large patterns in smaller more comprehensible ones
+ Add some comments on unclear code
+ Improve the API and its comments
+ `eom` is now `eof` (end of file)
+ `later` is now `at_eof`
+ `last` is `at_eocb` (end of codebase)
+ add comments for `eof` in `.mli`s
The `find` function was expecting a `ref` for the `occur` parameter
although it is always passed (updated) as argument to its inner `loop`
function.
@fantazio fantazio merged commit c70f140 into LexiFi:master Dec 12, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant