Skip to content

Instantly share code, notes, and snippets.

@adilakhter
Created April 9, 2014 14:59

Revisions

  1. adilakhter created this gist Apr 9, 2014.
    6 changes: 6 additions & 0 deletions main.scala
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    lazy val oDataQuery: PackratParser[SourceNode]={
    serviceURL ~ resourcePath ~ opt(queryOperationDef) ^^ {
    case uri ~ path ~ None => ODataQuery(uri, path, QueryOperations(Seq.empty))
    case uri ~ path ~ Some(exp) => ODataQuery(uri, path,QueryOperations(exp))
    }
    }