Snippets tagged interpreter

  • Brainfuck

    A minimal Brainfuck Interpreter (<30 lines) running Hello World!

    6 people like this

    Posted: 8 years ago by Phillip Trelford

  • Unlambda

    A minimal interpreter for David Madore's crazy-esoteric programming language.

    5 people like this

    Posted: 8 years ago by Nick Palladinos

  • 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: 5 years ago by Phillip Trelford

  • Turtle in Gtk#

    Turtle interpreter example using Mono's Gtk# library with example paths for MonoDevelop (running on Linux) and Xamarin Studio (running on Mac and Windows).

    2 people like this

    Posted: 3 years ago by Phillip Trelford

  • [HELP!] How to separately compile a function in F# at RUN-TIME ?

    Hello everyone, I'm a student who's programed with F# for 8 months. With F#, I managed to write an interpreter for my own language. By using higher order functions and abstract syntax tree, my interpreter can turn the whole program written by programmers (in the form of a string[]) into a single unit->unit function which actually runs (exactly) what programmers wrote in the string[]. The thing is I'd like to know if there are ways to compile/ convert a function into a .exe file. If someone's willing to help me, feel free to leave a comment by editing this snipet. /// Please note that I'm asking how to compile a function (can be unit or unit->unit) at RUN-TIME. Thank you in advance. /// Oh, by the way, I left the link to the source code of my interpreter. This may be useful for you to help me. /// Please, just don't laught at my interpreter and the way I wrote it.

    1 people like this

    Posted: 1 month ago by A Person Trying To Sharpen His Programming with F# Everyday