New type provider – Brainfuck

I know what you’re thinking. You really like the look of F# but your legacy brainfuck applications are stopping you from making the jump. Well worry no more, the brainfuck type provider is here to save you.

The type provider allows access to both the console output as well as the data stored in memory at the end of the program’s execution. It’s really easy to use as well.


type HelloWorld = Brainfuck.TypeProvider.BrainfuckProvider<"++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.">

let output = HelloWorld.ConsoleOuput

The project’s available on GitHub now at https://github.com/bruinbrown/BrainfuckTypeProvider but I’ll try and get a NuGet package available soon as well.

Advertisements

3 comments

  1. Can you extend this type-provider to support my brainfuck extension characters for monadic composition? My PL/I to Brainfuck translator requires this abstraction. thanks

  2. Pingback: Date Types

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s