This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package wolv.parserlibproblem | |
import util.parsing.ast.AbstractSyntax | |
import util.parsing.combinator.syntactical.TokenParsers | |
import util.parsing.combinator.lexical.Lexical | |
import util.parsing.combinator.token.Tokens | |
trait SimpleTokens extends Tokens { | |
case class Foo extends Token | |
case class Bar extends Token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class Action | |
case object Eat extends Action | |
case object Speak extends Action | |
case object Move extends Action | |
abstract class Creature (val action: Action) | |
case class Fish (a: Action, val size: String) extends Creature (a) | |
case class Dog (a: Action, val sound: String) extends Creature (a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/.idea/ | |
target/ | |
lib_managed/ | |
src_managed/ | |
test-output/ | |
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package spray.examples | |
import scala.concurrent.duration.Duration | |
import scala.concurrent.duration._ | |
import akka.actor._ | |
import akka.pattern.ask | |
import spray.util._ | |
import spray.io._ | |
import akka.event.LoggingAdapter | |
import akka.util.Timeout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.metahouse.metabus | |
import akka.actor._ | |
import akka.io.IO | |
import spray.can.Http | |
import spray.routing.HttpServiceActor | |
import spray.http._ | |
import spray.http.MediaTypes._ | |
import scala.concurrent.ExecutionContext.Implicits.global | |
import spray.http.ChunkedResponseStart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Tcp { | |
trait ConnectionDescriptor { | |
def remoteAddress: InetSocketAddress | |
def localAddress: InetSocketAddress | |
} | |
sealed trait ConnectionFlow extends Flow[ByteString, ByteString] { | |
def remoteAddress(mMap: MaterializedMap): InetSocketAddress | |
def localAddress(mMap: MaterializedMap): InetSocketAddress |