Skip to content

Instantly share code, notes, and snippets.

@sofoklis
Created August 26, 2012 21:00
Show Gist options
  • Save sofoklis/3483568 to your computer and use it in GitHub Desktop.
Save sofoklis/3483568 to your computer and use it in GitHub Desktop.
b_not_factor
private lazy val b_not_factor: Parser[Boolean] = opt("not") ~ b_factor ^^ (x ⇒ x match { case Some(v) ~ f ⇒ !f; case None ~ f ⇒ f })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment