[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#709628: ITP: libscout-clojure -- A library for clojure to parse strings



Package: wnpp
Severity: wishlist
Owner: "Eugenio Cano-Manuel Mendoza" <eugeniocanom@gmail.com>

* Package name    : libscout-clojure
  Version         : 0.1.0
  Upstream Author : David Santiago <david.santiago@gmail.com>
* URL             : https://github.com/davidsantiago/scout
* License         : EPL-1.0
  Programming Lang: Clojure, Java
  Description     : A library for clojure to parse strings

Scout can be used to process text without having to fully parse it,
either because the text format made that difficult, or it would have
been overkill for that particular task. For example, it is used for
parsing the mustache templates in the Stencil library.

The key object in Scout is a Scanner object, which is an immutable
object associated with the string it is scanning and a position within
that string. There are two ways to make a Scanner: either create a new
one using the scanner function, or use a Scout function to create a new
Scanner as the result of a search from a previous Scanner. If a Scanner
is created as the result of a successful search, it will contain a third
piece of data, an object with information about the parts of the string
it matched and any regular expression groups that were assigned as part
of the match. Since Scanners are immutable, you can easily start any
number of searches from a given Scanner and refer back to Scanner
objects from earlier in the parsing process.


Reply to: