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

A dumb question! #3

Open
omidb opened this issue Apr 6, 2015 · 3 comments
Open

A dumb question! #3

omidb opened this issue Apr 6, 2015 · 3 comments

Comments

@omidb
Copy link
Contributor

omidb commented Apr 6, 2015

I don't know anything about Scalaz (it's really hard to look at it!). I was looking at S-expression parser which is nice, but I didn't understand This parser accepts individual sentences, but we want to perform streaming processing on thousands of files, each of which may contain many sentences. and then all other scalaz stuff. Is it possible to make it clearer for me?

@travisbrown
Copy link
Owner

Sorry, it's not really clear what you're asking, and this project isn't intended to be a Scalaz introduction (it's only indirectly Scalaz-related at all).

@omidb
Copy link
Contributor Author

omidb commented Apr 6, 2015

Sorry if my question was not clear enough, I simply wanted to know what is the second part of code because I didn't understand it.

val sentenceSplitter = whenElt[String](_.startsWith("(")).keepDelimsL.split

def parseFile(file: String): Process[Task, Tree[String]] =
  io.linesR(file)
    .pipe(sentenceSplitter)
    .map(_.mkString)
    .filter(_.nonEmpty).evalMap(parseWith(new SentenceParser(_)))

@travisbrown
Copy link
Owner

Okay, sure—I'd be happy to add a few sentences explaining what's going on there. Reopening this issue…

@travisbrown travisbrown reopened this Apr 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants