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

Parser combinator "exception" operator #1229

Closed
scabug opened this issue Aug 15, 2008 · 2 comments
Closed

Parser combinator "exception" operator #1229

scabug opened this issue Aug 15, 2008 · 2 comments

Comments

@scabug
Copy link

scabug commented Aug 15, 2008

Scala's parser combinator library doesn't have an analogue to the
EVNF "except symbol" - from the ISO standard for EBNF (14977), where

p - q

accepts if the left hand side accepts and the right hand side rejects.

Adding support for it would make it easier to translate EBNF notation
directly into parser combinators. As far as I can tell, this would be
simple, as:

p - q == not(q) ~> p

A proposed patch against r15798 is attached.

@scabug
Copy link
Author

scabug commented Aug 15, 2008

Imported From: https://issues.scala-lang.org/browse/SI-1229?orig=1
Reporter: Aaron Harnly (aaronharnly)
Attachments:

@scabug
Copy link
Author

scabug commented Jul 17, 2015

@SethTisue said:
The parser combinators library is now community-maintained. Issues with it are now tracked at scala/scala-parser-combinators#61 instead of here in the Scala JIRA.

Interested community members: if you consider this issue significant, feel free to open a new issue for it on GitHub, with links in both directions.

@scabug scabug closed this as completed Jul 17, 2015
Philippus added a commit to Philippus/scala-parser-combinators that referenced this issue Jul 5, 2018
SethTisue added a commit to scala/scala-parser-combinators that referenced this issue Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant