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

Asynchronous exception used to circumvent parser logic #1450

Closed
GoogleCodeExporter opened this issue Aug 8, 2015 · 1 comment
Closed

Asynchronous exception used to circumvent parser logic #1450

GoogleCodeExporter opened this issue Aug 8, 2015 · 1 comment
Labels
parser Problems with the parser's implementation (rather than with decisions about syntax) syntax Bike-shedding of the surface syntax type: bug Issues and pull requests about actual bugs

Comments

@GoogleCodeExporter
Copy link

postulate
  F    : (Set → Set) → Set
  !_   : Set → Set
  !_,_ : Set → Set → Set
  X    : Set

syntax F (λ X → A) = X , A

infix 1 F
infix 2 !_

Foo : Set
Foo = ! X , X

-- This expression can be parsed in exactly one way. However, Agda
-- rejects it:
--
--   Expected variable name in binding position
--
-- The error is thrown from pure code in rebuildBinding, and this
-- action circumvents the parser logic.
--
-- The error was introduced in the fix for Issue 1129, and the problem
-- raised in Issue 1129 was introduced in a fix for Issue 1108
-- ("Operator parser performance").

Original issue reported on code.google.com by nils.anders.danielsson on 4 Mar 2015 at 1:55

@GoogleCodeExporter
Copy link
Author

Fixed (on the master branch):

  https://github.com/agda/agda/commit/0c6f8395b1d2825be984aefcbff2e016d1088ba2

Original comment by nils.anders.danielsson on 4 Mar 2015 at 7:16

  • Changed state: Fixed

@GoogleCodeExporter GoogleCodeExporter added type: bug Issues and pull requests about actual bugs auto-migrated syntax Bike-shedding of the surface syntax parser Problems with the parser's implementation (rather than with decisions about syntax) labels Aug 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser Problems with the parser's implementation (rather than with decisions about syntax) syntax Bike-shedding of the surface syntax type: bug Issues and pull requests about actual bugs
Projects
None yet
Development

No branches or pull requests

1 participant