Skip to content
/ scancom Public

Scancom - Scanner Combinators Library for Standard ML

Notifications You must be signed in to change notification settings

kni/scancom

Repository files navigation

Scancom - Scanner Combinators Library
*************************************

Scancom use

 type ('a, 'cs) Scanner = (char, 'cs) StringCvt.reader -> ('a, 'cs) StringCvt.reader

So you can use standard scanners (String.scan, Char.scan, Bool.scan, Int.scan, Real.scan, Word.scan, Date.scan) with scancom.


For example see t directory.


If you need find position (shift or line) see scancom-position.sml and t/pos.sml.


See also Sparcl (https://github.com/kni/sparcl), which use

  datatype ('r, 'cs) Result = Done of 'r * 'cs | Partial | Fail
      type ('r, 'cs) Parser = (char, 'cs) StringCvt.reader -> 'cs -> ('r, 'cs) Result

About

Scancom - Scanner Combinators Library for Standard ML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published