Skip to content

simontjell/Brainf_ckCSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainf_ckCSharp

A simple implementation of an interpreter for the Brainf*ck language in C#

You can use it in your own programs like this:

var parser = new Parser();
var program = parser.Parse("++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.");
var interpreter = new Interpreter();

var output =
  interpreter
  .Interpret(program)
  .ReadOutput()
;

...or by using the combined parser/interpreter like this:

var output = 
    new SimpleInterpreter(new Interpreter(), new Parser())
    .Run("++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.");

About

A simple implementation of an interpreter for the Brainf*ck language in C#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •