Skip to content

Onoffswitch.net

  • About
  • License

Tag: monads

A handrolled language parser

March 1, 2013

In my previous post about building a custom lexer I mentioned that, for educational purposes, I created a simple toy programming language (still unnamed). There, I talked about building a tokenizer and lexer from scratch. In this post I’ll discuss building a parser that is responsible for generating an abstract syntax tree (AST) for my language.… Read the rest

Posted in CodeTagged c#, language implementation, Lexer, monads, parser, projects

Tracing computation expressions

January 18, 2013

This article was originally published at tech.blinemedical.com

F# has a novel syntax feature called computation expressions, which lets you build complex monadic expressions with minimal syntax. Commonly shied away from, a monad is simple: it’s a function whose input is some state.… Read the rest

Posted in UncategorizedTagged F#, monads
© 2019 Onoffswitch.net • Slightly Theme by Nick Ciliak.