News for hackers. Stuff that matters.
Re:What the heck is a parser-combinator? by Tarean on Wednesday June 21, 2017 @10:06AM (#14603884)
In languages that allow abstraction over generic types you can also reuse a lot of infrastructure to write parsers. For instance you can parse a string by chaining a bunch of char parsers:

    string :: String -> Parser String
    string s = mapM char s
On the other hand this probably degrades from c-like performance to python levels so some higher level builtins that are easy to optimize and compile into efficient assembly might be a better idea.

There are no comments on this comment yet.