Snippets tagged language

  • Toml parser

    Parser for Tom's Obvious, Minimal Language (https://github.com/mojombo/toml).

    5 people like this

    Posted: 11 years ago by nagat01

  • Alternative ways to do some suggestions on F# user voice site.

    I read all the suggestions on http://fslang.uservoice.com/ . They are great suggestions! I found some of then are realized well by using current language features. Then I introduce them.

    6 people like this

    Posted: 10 years ago by nagat01

  • Mini SNOBOL Interpreter

    Minimal SNOBOL abstract syntax tree (AST), interpreter and internal DSL (but no parser), just enough to run some simple samples from Wikipedia's SNOBOL page: http://en.wikipedia.org/wiki/SNOBOL and most of the pattern matching examples from the SNOBOL 4 Tutorial http://www.snobol4.org/docs/burks/tutorial/ch4.htm

    2 people like this

    Posted: 10 years ago by Phillip Trelford

  • Toml parser (untyped)

    Untyped version of toml parser. The lines of code was reduced 173 to 45. It's based on some implementations in other languages (https://github.com/mojombo/toml#implementations). I was surprised that even a parser written in Objctive-c was simpler than mine (http://fssnip.net/jd). Then I read some others code and found that removing types which describes toml values simplifies the implementation. The code may seem little crazy, but I'm fine :)

    0 people like this

    Posted: 11 years ago by nagat01

  • Alternate version of Private DU constructor

    A different way of expressing private DU constructors.

    8 people like this

    Posted: 10 years ago by iceypoi