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

Replace of ... end with braces #308

Open
AshleyYakeley opened this issue Aug 24, 2024 · 1 comment
Open

Replace of ... end with braces #308

AshleyYakeley opened this issue Aug 24, 2024 · 1 comment
Labels
Milestone

Comments

@AshleyYakeley
Copy link
Owner

AshleyYakeley commented Aug 24, 2024

Remove of, end, in keywords, add ap keyword.

  • ap { ... }
  • do { ... }
  • match { ... }, see Replace match with fn of (or fn {}) #313
  • namespace N { ... }
  • datatype N { ... }
  • Mk { ... }
  • rf { ... } -- a record function, not a keyword
  • let { ... } expr
  • let rec { ... } expr
  • imply { ... } expr
  • with { ... } expr
  • import { ... } expr

Option

  • with ... expr (one namespace only, or allow comma-separated)
  • import ... expr (one file only, or allow comma-separated)

Option

Declarators

  • let { ... }
  • let rec { ... }
  • with x, y
  • import "a", "b"

Declarations

  • <declarator>;
  • <declarator> in <declaration>

Expression

  • <declarator> in <expression>
@AshleyYakeley
Copy link
Owner Author

Runs into a semi-ambiguity:

  • datatype T {-p,+q}
  • datatype T {Mk}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant