Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --statements flag to juvix dev latex export #2946

Merged
merged 4 commits into from
Aug 12, 2024

Conversation

janmasrovira
Copy link
Collaborator

@janmasrovira janmasrovira commented Aug 9, 2024

This pr adds the --statements flag to juvix dev latex export. It can be used like this:

juvix dev latex export --statements "List; elem; find" List.juvix

All statements are selectable by their 'label'. The label of a statement is defined as:

  1. The function/type/operator/alias/axiom/local_module/fixity/iterator name being defined.
  2. The module name being imported.

Limitations:

  1. Only top statements are allowed. I.e. statements inside local modules cannot be selected.
  2. Open statements are not selectable. Giving --statements "My.Module" will refer to the import statement import My.Module.
  3. Single constructors are not selectable. Only the whole type definition.
  4. No comments will be printed.

@janmasrovira janmasrovira self-assigned this Aug 9, 2024
@janmasrovira janmasrovira changed the title Add --definitions flag to juvix dev latex export Add --statements flag to juvix dev latex export Aug 9, 2024
@janmasrovira janmasrovira marked this pull request as ready for review August 9, 2024 13:41
@janmasrovira janmasrovira merged commit 2b5ece7 into main Aug 12, 2024
8 checks passed
@janmasrovira janmasrovira deleted the latex-export-definitions branch August 12, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants