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

dot-notation is often omitted #166

Open
gebner opened this issue Aug 23, 2022 · 1 comment
Open

dot-notation is often omitted #166

gebner opened this issue Aug 23, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@gebner
Copy link
Member

gebner commented Aug 23, 2022

Lean 3:

/-- Matches one out of a list of characters. -/
def one_of (cs : list char) : parser char :=
decorate_errors (do c ← cs, return c.to_string) $
sat (∈ cs)

Synport:

/-- Matches one out of a list of characters. -/
def oneOf (cs : List Charₓ) : Parser Charₓ :=
  (decorateErrors do
      let c ← cs
      return c) <|
    sat (· ∈ cs)

Note that the .to_string disappears.

@gebner
Copy link
Member Author

gebner commented Aug 25, 2022

This seems to be a bug in the AST export.

@gebner gebner added the bug Something isn't working label Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant