News for hackers. Stuff that matters.
Re:What's New in F# 4.1? [video] by VoiceOfWisdom on Friday December 09, 2016 @04:50PM (#13142149)
FParsec is fantastic. I have implemented a parser that supports a indentation based language in it. FParsec makes it very productive, and very fun.
Re:What's New in F# 4.1? [video] by mamcx on Friday December 09, 2016 @05:28PM (#13142417)
Is published? I have tried to use FParsec before for the same kind of language and failed.
Re:What's New in F# 4.1? [video] by VoiceOfWisdom on Friday December 09, 2016 @05:53PM (#13142581)
Its currently in a private bitbucket repo. I can give you the parser though, MIT licensed.

ParserUtils is where maybeIndented and indented are. They make indentation just work. There currently overzealous with backtracking though, makes errors kinda shit. Working on that at somepoint.

https://gist.github.com/xavierzwirtz/99479a11f1eefd3215467f7...

Re:What's New in F# 4.1? [video] by mamcx on Friday December 09, 2016 @06:23PM (#13142773)
Ok, thanks.

But this not look more easy than just do it as TopDown Parser. But I don't know your language so it maybe have provided you with some benefits more than just lines of code?

Re:What's New in F# 4.1? [video] by VoiceOfWisdom on Friday December 09, 2016 @06:26PM (#13142796)
Big benefit to me was being able to do it all with parser combinators, and without having to drop into another language like lex and yacc.
Re:What's New in F# 4.1? [video] by UK-AL on Friday December 09, 2016 @09:13PM (#13143601)
Parser combinators are top down parsers.